all groups > vb.net data > april 2004 >
You're in the

vb.net data

group:

Using the Excel Object in VB.NET



Using the Excel Object in VB.NET Terry Olsen
4/10/2004 4:12:27 PM
vb.net data: Is there a good reference on the Excel Object in VB.NET? I can create the
object, send data to a sheet, open, save & print files, but I want to format
the cells (border, shading, font, merging, etc.). So far I haven't been
able to figure that part out. Any help is appreciated. Thanks!

Re: Using the Excel Object in VB.NET William Ryan eMVP
4/11/2004 11:03:20 AM
Terry:

Select a range that you want to format ie Range("A1:A5").Select

Then use whatever formatters you need.
[quoted text, click to view]

Re: Using the Excel Object in VB.NET Paul Clement
4/12/2004 12:14:55 PM
[quoted text, click to view]

¤ Is there a good reference on the Excel Object in VB.NET? I can create the
¤ object, send data to a sheet, open, save & print files, but I want to format
¤ the cells (border, shading, font, merging, etc.). So far I haven't been
¤ able to figure that part out. Any help is appreciated. Thanks!
¤

Using the Macro Recorder in Excel can help you generate some of the code you need.


Paul ~~~ pclement@ameritech.net
AddThis Social Bookmark Button