+ Reply to Thread
Results 1 to 5 of 5

Calling subroutine in closed workbook without opening

  1. #1
    Registered User
    Join Date
    05-21-2025
    Location
    Cantu, Italy
    MS-Off Ver
    Business 365
    Posts
    24

    Calling subroutine in closed workbook without opening

    Hi all,

    Is it possible to call subroutines in a closed workbook without opening it?

    Thanks - Niels

  2. #2
    Valued Forum Contributor
    Join Date
    09-18-2023
    Location
    Geogia, USA
    MS-Off Ver
    365
    Posts
    331

    Re: Calling subroutine in closed workbook without opening

    The only thing I can think that might help is using a Personal Macro Workbook https://support.microsoft.com/en-us/...1-ae005a9bc790 this way you don't need to access a closed workbook you simply have a shared macro library, so to speak.

    Perhaps other ideas could be had if you could explain the process, you are trying to automate with the current macro.

  3. #3
    Forum Expert romperstomper's Avatar
    Join Date
    08-13-2008
    Location
    England
    MS-Off Ver
    365, varying versions/builds
    Posts
    22,064

    Re: Calling subroutine in closed workbook without opening

    Quote Originally Posted by nielsjmp View Post
    Is it possible to call subroutines in a closed workbook without opening it?
    No, it is not.
    Everyone who confuses correlation and causation ends up dead.

  4. #4
    Registered User
    Join Date
    05-21-2025
    Location
    Cantu, Italy
    MS-Off Ver
    Business 365
    Posts
    24

    Re: Calling subroutine in closed workbook without opening

    OK, it was just an idea about how to organize my files and in which ones to contain the code. I guess I will figure it out.

    Thanks:-)

  5. #5
    Registered User
    Join Date
    11-14-2010
    Location
    EXCELGAARD
    MS-Off Ver
    Excel 365
    Posts
    57

    Re: Calling subroutine in closed workbook without opening

    You could open the workbook containing the macro, as a hidden workbook, and then run the macro, and finally close the hidden workbook again...
    ...that way the user will never know or see what is happening.

+ 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. Get value from closed workbook without opening it
    By YasserKhalil in forum Excel Programming / VBA / Macros
    Replies: 28
    Last Post: 10-05-2019, 08:05 AM
  2. Determining which subroutine is calling another subroutine?
    By jplank in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-17-2016, 01:05 PM
  3. Calling Subroutine from Another Open Workbook Failing
    By BeefNoodleSoup in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-19-2012, 09:38 PM
  4. HELP! Calling subroutine in different workbook
    By ChrisWalker in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-01-2006, 07:32 AM
  5. Replies: 5
    Last Post: 10-25-2005, 01:05 PM
  6. Calling a Public Subroutine in a Different Workbook
    By Raul in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-24-2005, 12:05 AM
  7. Calling a subroutine in another workbook
    By mta37 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-11-2005, 12:23 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