Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default applying column formatting programatically

I have:

ws.range("J").NumberFormat = "0%"

and

ws.range("K").NumberFormat = "_($* #,##0.00_);_($* (#,##0.00);_($*
""-""??_);_(@_)"

where ws is dim'd as a worksheet
This formatting code lines are copied from a VB6 program. However, I
am coding in VB.net (VS2003) and they are giving me runtime errors:

System.Runtime.InteropServices.COMException (0x800A03EC): Exception
from HRESULT: 0x800A03EC.
at Microsoft.VisualBasic.CompilerServices.LateBinding .LateGet(Object
o, Type objType, String name, Object[] args, String[] paramnames,
Boolean[] CopyBack)

Can anyone explain to me what's going on and show me the proper syntax
for formatting the Excel worksheet objects in VB.net?

Thank you.

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Conditional Formatting Applying Rule to Entire Column Vince Pacella Excel Discussion (Misc queries) 2 December 1st 09 09:00 AM
Applying UDF In Conditional Formatting FARAZ QURESHI Excel Discussion (Misc queries) 1 May 28th 09 03:39 PM
Applying Formatting (Fonts) in Formuals Hague2 Excel Discussion (Misc queries) 1 April 21st 05 10:48 PM
Copying Formats vs Formatting Programatically Adam Excel Programming 4 March 31st 05 09:29 PM
applying standard formatting to a worksheet neil Excel Programming 3 March 17th 05 04:59 PM


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

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"