#1   Report Post  
vgurusa
 
Posts: n/a
Default Formatting


Hi Ppl,

How to format the Worksheet programatically from a software like Visual
Basic ?

For e.g. the worksheets specific rows have to be changed into
numberformat="Number" instead of default "General"

Thanks,

Vijay


--
vgurusa
------------------------------------------------------------------------
vgurusa's Profile: http://www.excelforum.com/member.php...o&userid=28100
View this thread: http://www.excelforum.com/showthread...hreadid=478321

  #2   Report Post  
JE McGimpsey
 
Posts: n/a
Default Formatting

One way:

Application.Workbooks("Book1.xls").Sheets("Sheet1" ).Range( _
"1:10").NumberFormat = "0.00"


In article ,
vgurusa wrote:

Hi Ppl,

How to format the Worksheet programatically from a software like Visual
Basic ?

For e.g. the worksheets specific rows have to be changed into
numberformat="Number" instead of default "General"

Thanks,

Vijay

  #3   Report Post  
vgurusa
 
Posts: n/a
Default Formatting


Hi JE,

Thats not working, I always get an error subscript out of range error!

Can you suggest another way !

Thanks,

Vijay


--
vgurusa
------------------------------------------------------------------------
vgurusa's Profile: http://www.excelforum.com/member.php...o&userid=28100
View this thread: http://www.excelforum.com/showthread...hreadid=478321

  #4   Report Post  
Nick Hodge
 
Posts: n/a
Default Formatting

Vijay

A #9 subscript out of range error is generated if the code can't find a
referenced element in the code, for example if you reference Sheet10 and you
don't have one

--
HTH
Nick Hodge
Microsoft MVP - Excel
Southampton, England
www.nickhodge.co.uk
HIS


"vgurusa" wrote in
message ...

Hi JE,

Thats not working, I always get an error subscript out of range error!

Can you suggest another way !

Thanks,

Vijay


--
vgurusa
------------------------------------------------------------------------
vgurusa's Profile:
http://www.excelforum.com/member.php...o&userid=28100
View this thread: http://www.excelforum.com/showthread...hreadid=478321



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 Error ddate Excel Worksheet Functions 0 May 5th 05 09:00 PM
difficulty with conditional formatting Deb Excel Discussion (Misc queries) 0 March 23rd 05 06:13 PM
conditional formatting question Deb Excel Discussion (Misc queries) 0 March 23rd 05 02:07 AM
Formatting dates in the future Compass Rose Excel Worksheet Functions 3 January 17th 05 10:39 PM
Copy conditional formatting across multiple rows? Gil Excel Discussion (Misc queries) 1 January 11th 05 11:27 AM


All times are GMT +1. The time now is 02:28 PM.

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"