+ Reply to Thread
Results 1 to 5 of 5

Running MS Excel in background OR minimized.

  1. #1
    Registered User
    Join Date
    06-01-2010
    Location
    Canada
    MS-Off Ver
    Excel 2003
    Posts
    47

    Thumbs down Running MS Excel in background OR minimized.

    Is there a way to run macros in the background? I currently have several hundred VBA macros (Only coding language available to our company) integrated into a private application used for program delivery. Every time a macro is run, excel has to open up.

    I know VBA uses the application, so it has to open - but is there a way to keep excel in the background or keep it minimized so users can't see it?


    Also many of the macros use user forms. Will this impact excels visibility if the above is possible?


    Thanks for everyone's help.

    - Shane
    Last edited by Shane O; 07-20-2010 at 12:35 PM. Reason: solved

  2. #2
    Forum Expert Domski's Avatar
    Join Date
    12-14-2009
    Location
    A galaxy far, far away
    MS-Off Ver
    Darth Office 2010
    Posts
    3,950

    Re: Running MS Excel in background OR minimized.

    You can set the application's visible property:

    Please Login or Register  to view this content.

    Dom
    "May the fleas of a thousand camels infest the crotch of the person who screws up your day and may their arms be too short to scratch..."

    Use code tags when posting your VBA code: [code] Your code here [/code]

    Remember, saying thanks only takes a second or two. Click the little star to give some Rep if you think an answer deserves it.

  3. #3
    Registered User
    Join Date
    06-01-2010
    Location
    Canada
    MS-Off Ver
    Excel 2003
    Posts
    47

    Re: Running MS Excel in background OR minimized.

    Wow. This helps a lot! Thanks!


    I seriously have hundreds of macro's to update now... I'm suprised no other developer for this company asked this question before.


    Thanks again,

    - Shane

  4. #4
    Forum Expert Domski's Avatar
    Join Date
    12-14-2009
    Location
    A galaxy far, far away
    MS-Off Ver
    Darth Office 2010
    Posts
    3,950

    Re: Running MS Excel in background OR minimized.

    Got any jobs going? Always fancied Canada

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

    Re: Running MS Excel in background OR minimized.

    You can have a hidden instance of Excel that runs macros to its heart's content.

    In a code module in some workbook:

    Please Login or Register  to view this content.
    In myMacroController.xls ThisWorkbook:

    Please Login or Register  to view this content.
    In a myMacroController.xls code module:

    Please Login or Register  to view this content.
    Sign the project in myMacroController so that the code runs without prompting.
    Entia non sunt multiplicanda sine necessitate

+ 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