Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Formatting Excel Cells

Status
Not open for further replies.

jonnyk

Programmer
Jan 11, 2001
19
0
0
GB
I have an application that populates an Excel spreadsheet and formats the data on the selection of a menu item. This runs fine first time but all subsequent exports are left unformatted. Any Thoughts
 
Well if you're using the Range object to populate the cells then do the following:

Dim rngRange as Excel.Range

Code:
rngRange = oExcel.Range("A1")
rngRange = "TextInTheCell"
Range.Cells.Font.Bold = True (or whatever you're doing to format it.)

;-)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top