+ Reply to Thread
Results 1 to 3 of 3

Hiding workbook during macro running makes Excel unable to access it behind the scenes

  1. #1
    Forum Contributor
    Join Date
    09-04-2013
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    298

    Hiding workbook during macro running makes Excel unable to access it behind the scenes

    I am using


    Please Login or Register  to view this content.

    once my userform loads to hide the workbook, however doing so makes all the references to the worksheets within fail to work.


    Is there a way to hide Excel (ONLY the macrobook, other books the user has open should stay open) completely and still allow the macro to successfully reference it?

  2. #2
    Registered User
    Join Date
    06-03-2015
    Location
    Houston, Tx
    MS-Off Ver
    2010
    Posts
    64

    Re: Hiding workbook during macro running makes Excel unable to access it behind the scenes

    I've tested your code and I too get the same problem. But If I use the following, everything works as it should

    Please Login or Register  to view this content.

  3. #3
    Forum Contributor
    Join Date
    09-04-2013
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    298

    Re: Hiding workbook during macro running makes Excel unable to access it behind the scenes

    Wouldn't that hide all the Excel books the user has open as well? I only want to hide the one containing the macro.

+ 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. Replies: 4
    Last Post: 12-05-2014, 10:44 AM
  2. Access denied error while running one of the macro in excel
    By chandanp in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 03-12-2014, 01:57 AM
  3. Running an Access Macro from Excel
    By Aquamore in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-16-2014, 07:18 PM
  4. Macro is running real slow and makes navigating the worksheet really slow after execution.
    By MichWolverines in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-03-2013, 04:29 PM
  5. Running an Access macro via Excel on a shared Access db
    By koltregaskes in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-07-2011, 10:22 AM
  6. Automatically saving access query as Excel file and then running a macro
    By Spac3Monkey1 in forum Access Programming / VBA / Macros
    Replies: 0
    Last Post: 06-10-2009, 09:54 AM
  7. [SOLVED] Running an Excel macro from Access problem
    By Huff in forum Excel General
    Replies: 3
    Last Post: 07-11-2006, 01:40 PM

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