+ Reply to Thread
Results 1 to 7 of 7

Micro Run after open excel file but do not show macro name.

  1. #1
    Forum Contributor
    Join Date
    12-27-2008
    Location
    India
    MS-Off Ver
    Office 365
    Posts
    235

    Red face Micro Run after open excel file but do not show macro name.

    Dear All,

    When I open excel file, I kept the Call command to run my particular macros.
    These macros visible in Alt + F8

    I do not they visible but they run when file Open.

    Any idea , how to do it?

    Reg, RL

  2. #2
    Forum Expert Kenneth Hobson's Avatar
    Join Date
    02-05-2007
    Location
    Tecumseh, OK
    MS-Off Ver
    Office 365, Win10Home
    Posts
    2,573

    Re: Micro Run after open excel file but do not show macro name.

    I am not sure what you want. If you want to make them Private and not Public:
    Please Login or Register  to view this content.

  3. #3
    Forum Contributor
    Join Date
    12-27-2008
    Location
    India
    MS-Off Ver
    Office 365
    Posts
    235

    Re: Micro Run after open excel file but do not show macro name.

    Hi,

    If I make Private then I cannot call the macro when workbook open!

    Any other method!

  4. #4
    Forum Expert Kenneth Hobson's Avatar
    Join Date
    02-05-2007
    Location
    Tecumseh, OK
    MS-Off Ver
    Office 365, Win10Home
    Posts
    2,573

    Re: Micro Run after open excel file but do not show macro name.

    Really? Did you put it in the ThisWorkbook's open event?

    Another method is to make it a function.

  5. #5
    Valued Forum Contributor
    Join Date
    08-29-2012
    Location
    In lockdown
    MS-Off Ver
    Excel 2010 (2003 to 2016 but 2010 for choice)
    Posts
    1,766

    Re: Micro Run after open excel file but do not show macro name.

    Try this:
    1. Open the macro workbook
    2. Open the VBA Editor
    3. Select the ThisWorkbook module (Go to Project Explorer, you'll find this under 'Microsoft Excel Objects')
    4. Copy and paste the code below into ThisWorkbook module
    5. Save and close the workbook
    6. Reopen the workbook. The code should run. (If it doesn't then check that you enabled macros)

    Please Login or Register  to view this content.
    *******************************************************

    HELP WANTED! (Links to Forum threads)
    Trying to create reusable code for Custom Events at Workbook (not Application) level

    *******************************************************

  6. #6
    Forum Expert Kenneth Hobson's Avatar
    Join Date
    02-05-2007
    Location
    Tecumseh, OK
    MS-Off Ver
    Office 365, Win10Home
    Posts
    2,573

    Re: Micro Run after open excel file but do not show macro name.

    One other method to run a Private routine from another object is:
    Please Login or Register  to view this content.

  7. #7
    Forum Contributor
    Join Date
    12-27-2008
    Location
    India
    MS-Off Ver
    Office 365
    Posts
    235

    Thumbs up Re: Micro Run after open excel file but do not show macro name.

    I try by both method!
    Both works perfect.

    Again, I appreciate your time, effort and help.

    Reg, RL

+ 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