+ Reply to Thread
Results 1 to 4 of 4

Macro Written, but I need to automate (Execute on Opening the XLS) with the Ctrl+M automat

  1. #1
    Registered User
    Join Date
    08-31-2012
    Location
    Austin, Texas
    MS-Off Ver
    Excel 2010
    Posts
    5

    Macro Written, but I need to automate (Execute on Opening the XLS) with the Ctrl+M automat

    Macro Written, but I need to automate (Execute on Opening the XLS) with the Ctrl+M automatically. Right now, I have to physically open a spreadsheet, then physically hit the Ctrl + M to execute the macro. I need this automated, and can't figure out how to do this? Any help that can be provided would appreciated. I will attach the two files, one the EnergyReport2.xl;s put on the desktop and then open the enabled-macro
    Attached Files Attached Files

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Macro Written, but I need to automate (Execute on Opening the XLS) with the Ctrl+M aut

    Hi,

    Neither of the files you attached seems to contain a macro. However in order to get a macro to run just include the name of the macro in the Workbook_Open event of the workbook in question.
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Registered User
    Join Date
    08-31-2012
    Location
    Austin, Texas
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: Macro Written, but I need to automate (Execute on Opening the XLS) with the Ctrl+M aut

    Can you explain where and how to do this. I am not a coder and don't do this stuff for a living. Thanks.

  4. #4
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Macro Written, but I need to automate (Execute on Opening the XLS) with the Ctrl+M aut

    ...but neither of the files contain a macro despite your OP starting out with the comment 'Macro Written'

    What is the macro code if it's already written.

    If not please explain in detail what you are trying to do step by step.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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