VBS Constant Problem in Excel

Posted on 2009-02-12
Last Modified: 2012-05-06
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 "c:\\test.xls"

ie.ActiveWindow.ScrollWorkbookTabs Position:=xlFirst

Open in new window

Question by:Droo1977
    LVL 92

    Accepted Solution


    Author Closing Comment

    Thanks works great, so simple.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    IT, Stop Being Called Into Every Meeting

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    Suggested Solutions

    Title # Comments Views Activity
    How to calculate the  QUARTILE ? 5 25
    VBA to sum a column 13 30
    rank minimum order 9 16
    Need help to rewrite script 3 0
    Introduction This Article briefly covers methods of calculating the NPV and IRR variants in Excel as well as the limitations in calculating and interpreting IRR results. Paraphrasing Richard Shockley, author of my favourite finance reference tex…
    This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
    The viewer will learn how to use a discrete random variable to simulate the return on an investment over a period of years, create a Monte Carlo simulation using the discrete random variable, and create a graph to represent the possible returns over…
    Graphs within dashboards are meant to be dynamic, representing data from a period of time that will change each time the dashboard is updated with new data. Rather than update each graph to point to a different set within a static set of data, t…

    761 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    7 Experts available now in Live!

    Get 1:1 Help Now