PC Review


Reply
Thread Tools Rate Thread

Changing Spreadsheet Cell Attributes In VB.Net

 
 
Atley
Guest
Posts: n/a
 
      3rd Mar 2004
I have been creating spreadsheets in VB.net 2003 and i can get most
everythign perfect, except changing the color of the fonts and the cells, i
keep getting exception errors when i try to use:
xlRange.font.background = color.lightgray

I can't seem to find any documentation on this, does anyone know what is
going on?


Thanks for the help.


 
Reply With Quote
 
 
 
 
Vikas Ahuja
Guest
Posts: n/a
 
      3rd Mar 2004
Open Excel and start recording a macro. Change the font/color as you want it
to be done by your app. Stop recording the macro and go look at the code
that Excel has generated for the macro.

This has helped me several times when I have wanted to figure out what code
to use to something in VBA.

Vikas

"Atley" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> I have been creating spreadsheets in VB.net 2003 and i can get most
> everythign perfect, except changing the color of the fonts and the cells,

i
> keep getting exception errors when i try to use:
> xlRange.font.background = color.lightgray
>
> I can't seem to find any documentation on this, does anyone know what is
> going on?
>
>
> Thanks for the help.
>
>



 
Reply With Quote
Reply

Thread Tools
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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Copy data from a changing spreadsheet to a constant spreadsheet jonallen51 Microsoft Excel Programming 1 10th Apr 2008 05:51 PM
Changing a cell value in a spreadsheet may not change the result. JAYH33 Microsoft Excel Misc 1 5th Dec 2007 08:10 PM
Changing Attributes Barry Karas Windows XP Help 0 12th Jul 2006 10:57 PM
Changing spreadsheet cell through UDF Nacho Nachev Microsoft Excel Programming 4 21st Sep 2004 03:01 PM
Changing attributes cvd Windows XP Basics 0 10th Jan 2004 02:16 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 03:22 AM.