Formatting

  • Thread starter Thread starter vgurusa
  • Start date Start date
V

vgurusa

Hi Ppl,

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

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

Thanks,

Vija
 
One way:

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

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

Can you suggest another way !

Thanks,

Vija
 
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
(e-mail address removed)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top