|
-
Oct 21st, 2002, 09:32 AM
#1
Thread Starter
Fanatic Member
Excel - Object Model [RESOLVED]
I am automating Excel (2000) from within a VB app and I am trying to set the width of the first column like this:
VB Code:
newsheet.Columns(1).width = 60
Unfortunately, I just get the following error:
Unable to set the Width property of the Range class
Anybody know how to do this?
Last edited by simonm; Oct 21st, 2002 at 10:05 AM.
Everything I say is either loose interpretation of dubious facts or idle speculation rooted in irrational sentiment. 
-
Oct 21st, 2002, 09:36 AM
#2
Fanatic Member
VB Code:
Columns("G:G").ColumnWidth = 14.13
Doesnt look too far off?
Seahag
-
Oct 21st, 2002, 10:04 AM
#3
Thread Starter
Fanatic Member
Cheers...that seems to work!
Everything I say is either loose interpretation of dubious facts or idle speculation rooted in irrational sentiment. 
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|