+ Reply to Thread
Results 1 to 9 of 9

Cant switch between Workbooks any more

  1. #1
    Forum Contributor
    Join Date
    10-08-2013
    Location
    End of the World, USA
    MS-Off Ver
    EXCEL 2007
    Posts
    111

    Cant switch between Workbooks any more

    I have a macro in one workbook that jumps between this workbook and another workbook, but today I get an error on the line that activates the other workbook. Error:9 Subscript out of range. No changes made, it always worked before
    Last edited by frank35; 11-29-2013 at 02:06 PM.

  2. #2
    Forum Expert Jakobshavn's Avatar
    Join Date
    08-17-2012
    Location
    Lakehurst, NJ, USA
    MS-Off Ver
    Excel 2007
    Posts
    1,970

    Re: Cant switch between Workbooks any more

    Post your code.
    Gary's Student

  3. #3
    Forum Contributor
    Join Date
    10-08-2013
    Location
    End of the World, USA
    MS-Off Ver
    EXCEL 2007
    Posts
    111

    Re: Cant switch between Workbooks any more

    sorry, top secret. Can only say that absolutely nothing changed and now it doesnt work any more

  4. #4
    Forum Contributor
    Join Date
    10-08-2013
    Location
    End of the World, USA
    MS-Off Ver
    EXCEL 2007
    Posts
    111

    Re: Cant switch between Workbooks any more

    this makes absolutely no sense. So disappointing.

  5. #5
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689

    Re: Cant switch between Workbooks any more

    How can a single line of code be top secret?

    Maybe your computer lacks the clearance necessary to run it ...
    Entia non sunt multiplicanda sine necessitate

  6. #6
    Forum Contributor
    Join Date
    10-08-2013
    Location
    End of the World, USA
    MS-Off Ver
    EXCEL 2007
    Posts
    111

    Re: Cant switch between Workbooks any more

    Please Login or Register  to view this content.
    --> Subscript out of range
    Last edited by frank35; 11-29-2013 at 02:04 PM.

  7. #7
    Forum Contributor
    Join Date
    10-08-2013
    Location
    End of the World, USA
    MS-Off Ver
    EXCEL 2007
    Posts
    111

    Re: Cant switch between Workbooks any more

    So what is wrong here? The name is exactly the same and it worked before. Is there a way around this or another way to switch workbooks ? It worked before!!!

  8. #8
    Forum Guru HaHoBe's Avatar
    Join Date
    02-19-2005
    Location
    Hamburg, Germany
    MS-Off Ver
    work: 2016 on Win10 (notebook), private: 365 on Win11 (desktop), 2019 on Win11 (notebook)
    Posts
    8,199

    Re: Cant switch between Workbooks any more

    Hi, frank35,

    even a one-liner should be wrapped with code-tags.

    So you file is just called Some Workbook, no extension?

    Please Login or Register  to view this content.
    assuming a macrofree workbook should work but IŽd set objects to the workbook to avoid switching between them (and getting RTE).

    Ciao,
    Holger
    Use Code-Tags for showing your code: [code] Your Code here [/code]
    Please mark your question Solved if there has been offered a solution that works fine for you

  9. #9
    Forum Contributor
    Join Date
    10-08-2013
    Location
    End of the World, USA
    MS-Off Ver
    EXCEL 2007
    Posts
    111

    Re: Cant switch between Workbooks any more

    Hallo Holger!
    Thank you so much for you Hilfe!
    It works now!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] How to use Getopenfilename to switch between workbooks
    By rasonline in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-27-2013, 04:12 AM
  2. macro not able to switch between workbooks
    By kinokino in forum Excel Programming / VBA / Macros
    Replies: 16
    Last Post: 05-09-2013, 05:57 AM
  3. How to switch between source and 2 new workbooks?
    By trillium in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-10-2010, 01:04 PM
  4. Cna't switch open workbooks
    By asyrip in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-27-2006, 04:21 AM
  5. How to switch between different workbooks?
    By Ivan in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-28-2005, 02:35 AM

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