|
-
Jan 10th, 2001, 07:59 AM
#1
Thread Starter
Junior Member
Hi
I am working with excel object and VB.
I try to change the width for column B
I write this:
(i declare "ExcelSheet" as Excel.Application)
ExcelSheet.Columns("B").Select
ExcelSheet.Columns("B").Width = 20
the first line is OK and VB raise an error when
it try to pass the second line ( if i delete the second line
i can see that Excel select column B)
can you help me ?
-
Jan 10th, 2001, 08:22 AM
#2
Lively Member
This should help....
You don't need to select anything. You can simply do:
Code:
MyWorkSheet.columns(1).columnwidth = iColWidth
Works fine for me, and there's certainly no probs caused by changing the range or deleting rows/columns.
Anakim
It's a small world but I wouldn't like to paint it.
-
Jan 10th, 2001, 08:28 AM
#3
Thread Starter
Junior Member
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
|