Visual Basic Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Iron Speed
Go Back   ASP Free ForumsProgrammingVisual Basic Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
Ajax Application Generator Generate database and reporting .NET Web apps in minutes. Quickly create visually stunning, feature-rich apps that are easy to customize and ready to deploy. Download Now!
  #1  
Old June 7th, 2004, 11:27 AM
zo103181 zo103181 is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Apr 2004
Posts: 10 zo103181 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 6 m 20 sec
Reputation Power: 0
Question Excel formatting and check box

I've been having this problem for the past couple of hours and can't seem to figure it out. I have a VB application that is writing data into an excel spreadsheet. It places the data into the spreadsheet using a loop function and every time a new item is going to be added it inserts a new row. The problem I am having is that the cell formatting is not being applied to the newly inserted row. How do I do this? I am using the xlBook.Application.Range(previousCell).EntireRow.S elect to select the previous cell and then xlBook.Application.Selection.EntireRow.Insert to insert the row.

Another problem I am having is I have a couple check boxes on this excel form and what I want to do is if a certian check box is selected in the VB application Id like to also select the certian check box on the excel sheet.

Thanks,
~Zach~

Reply With Quote
  #2  
Old June 7th, 2004, 02:03 PM
zo103181 zo103181 is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Apr 2004
Posts: 10 zo103181 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 6 m 20 sec
Reputation Power: 0
Exclamation First Problem Solved

Ok well I figured out what I was doing wrong in the first problem, but I am still having problems with the check boxes.

Reply With Quote
  #3  
Old June 8th, 2004, 11:12 AM
zo103181 zo103181 is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Apr 2004
Posts: 10 zo103181 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 6 m 20 sec
Reputation Power: 0
Smile Problems Solved

Well the moderators can delete this post now, because I figured out what I was doing wrong. I guess before you can edit the check box control in excel from vb you must use the line of code in blue to activate it:

Code:
xlBook.Application.ActiveSheet.chkBoxName.Activate
xlBook.Application.ActiveSheet.chkBoxName.Value = True


Thanks for reading,
~Zach~

Reply With Quote
Reply

Viewing: ASP Free ForumsProgrammingVisual Basic Programming > Excel formatting and combo box


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway