• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 214
  • 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

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

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