• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 222
  • Last Modified:

VBS Constant Problem in Excel

Hi
I'm still have problems with some VBScript code I am working on.  What I would like to do is to have this script select the left most worksheet in a workbook.  My code is posted below.  Thanks
Const xlFirst = 0
Set ie = wscript.CreateObject ("excel.Application")
 
ie.visible = True
ie.workbooks.open "c:\\test.xls"
ie.ActiveWindow.ScrollWorkbookTabs Position:=xlFirst

Open in new window

0
Droo1977
Asked:
Droo1977
1 Solution
 
Patrick MatthewsCommented:
ie.ActiveWorkbook.Worksheets(1).Select
0
 
Droo1977Author Commented:
Thanks works great, so simple.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now