+ Reply to Thread
Results 1 to 3 of 3

Automatic running of Macros

Hybrid View

  1. #1
    Registered User
    Join Date
    01-11-2006
    Posts
    82

    Automatic running of Macros

    Hi all,

    I have a simple query. I have created a macro. It needs a control key to run. To put it more simple, it is a macro created manually and not using the VB. Now, everytime I open the spreadsheet, I do not want the macro to run with the control key. I want it to automatically run when the sheet is open.

    Can anyone please give me any suggestions on this please???

    Thanks in advance,
    Praveen

  2. #2
    Bob Phillips
    Guest

    Re: Automatic running of Macros

    Private Sub Workbook_Open()
    myMacro
    End Sub

    'This is workbook event code.
    'To input this code, right click on the Excel icon on the worksheet
    '(or next to the File menu if you maximise your workbooks),
    'select View Code from the menu, and paste the code


    --
    HTH

    Bob Phillips

    (remove nothere from email address if mailing direct)

    "praveen_khm" <praveen_khm.23iv1b_1140429001.9731@excelforum-nospam.com>
    wrote in message
    news:praveen_khm.23iv1b_1140429001.9731@excelforum-nospam.com...
    >
    > Hi all,
    >
    > I have a simple query. I have created a macro. It needs a control key
    > to run. To put it more simple, it is a macro created manually and not
    > using the VB. Now, everytime I open the spreadsheet, I do not want the
    > macro to run with the control key. I want it to automatically run when
    > the sheet is open.
    >
    > Can anyone please give me any suggestions on this please???
    >
    > Thanks in advance,
    > Praveen
    >
    >
    > --
    > praveen_khm
    > ------------------------------------------------------------------------
    > praveen_khm's Profile:

    http://www.excelforum.com/member.php...o&userid=30364
    > View this thread: http://www.excelforum.com/showthread...hreadid=514337
    >




  3. #3
    Registered User
    Join Date
    01-11-2006
    Posts
    82
    Thanks Bob,

    It helps a lot.

    Thanks again. ..

+ 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