|
-
Jul 26th, 2005, 11:17 AM
#1
Thread Starter
Addicted Member
Re: Select sheet in Excel without knowing the name.
 Originally Posted by Matias
VB Code:
i = 1
Do
GetCount = .Cells(i, 2)
i = i + 1
Loop Until GetCount = ""
Try objExcel.ActiveSheet.Cells(i,2) instead of .cells(i,2)
OK, it works. But I've done quite a bit of Excel manipulation and never had to do it that way before, must be becasue of the ambiguous sheet names?
Now what if I have more than one sheet? I may never, but might as well ask now just in case.
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
|