+ Reply to Thread
Results 1 to 5 of 5

problem with auto_open when opening from another sheet

  1. #1
    Forum Contributor
    Join Date
    12-13-2012
    Location
    Shropshire, England
    MS-Off Ver
    Excel 2007 /10 /13
    Posts
    118

    problem with auto_open when opening from another sheet

    I have a workbook that has a simple macro to open two other workbooks, both these others have auto_open macros in them, that work fine when opened normally, but when I open them using the macro from the first sheet the auto_open(s) do not run, hoe can I get around this please?

  2. #2
    Forum Guru JosephP's Avatar
    Join Date
    03-27-2012
    Location
    Ut
    MS-Off Ver
    2003/10
    Posts
    7,328

    Re: problem with auto_open when opening from another sheet

    either use Workbook_Open events instead or call the workbook's runautomacros method-for instance
    Please Login or Register  to view this content.
    Josie

    if at first you don't succeed try doing it the way your wife told you to

  3. #3
    Forum Contributor
    Join Date
    12-13-2012
    Location
    Shropshire, England
    MS-Off Ver
    Excel 2007 /10 /13
    Posts
    118

    Re: problem with auto_open when opening from another sheet

    ah, found it, need to run the auto_open from the original macro, weird
    if anyone else needs it -

    Run macro:="filename.xls!macroname"
    or Run macro:="'file name.xls'!macroname" (single quotes around file names with spaces) this was my downfall

  4. #4
    Forum Contributor
    Join Date
    12-13-2012
    Location
    Shropshire, England
    MS-Off Ver
    Excel 2007 /10 /13
    Posts
    118

    Re: problem with auto_open when opening from another sheet

    you replied as I was typing, thanks for another solution

  5. #5
    Forum Guru JosephP's Avatar
    Join Date
    03-27-2012
    Location
    Ut
    MS-Off Ver
    2003/10
    Posts
    7,328

    Re: problem with auto_open when opening from another sheet

    you're welcome-and thanks for posting your alternative :-)

    please don't forget to mark the thread solved

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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