+ Reply to Thread
Results 1 to 3 of 3

Automatically select another open spreadsheet

  1. #1
    Forum Contributor
    Join Date
    12-22-2004
    Location
    Kokomo, Indiana
    Posts
    236

    Automatically select another open spreadsheet

    Gentlemen,
    I have two spreadsheets that are open and each are from its own separate file or workbook. I'm using Excel 2007 and attempting to switch between one open to the other open. How do I do this using VBA? Thank you in advance and have a Happy New Year.

  2. #2
    Forum Contributor
    Join Date
    12-22-2004
    Location
    Kokomo, Indiana
    Posts
    236

    Question

    Oh, I forgot. The workbook names are never the same.

  3. #3
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200
    You can refer to the workbook containing the code as ThisWorkBook.

    You don't actually need to activate the workbooks in your code.
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1