+ Reply to Thread
Results 1 to 3 of 3

How to use Macro

Hybrid View

  1. #1
    Registered User
    Join Date
    01-29-2007
    Posts
    28

    How to use Macro

    I wish to take help by using Macro in MS Excel. But dont know how to use. As I click 'Macro' from tool option there my confusion begin. As to where do I write code?
    • in macro (which ask 1st macro name & then a blank window)
    • or in Visual Basic option

    In Visual Basic window... there are lot of sublist for worksheets & workbook.

    So, which one I going to choose for simplyfy my job in excel. Is there any free e-book availble for us (beginner).
    Last edited by VBA Noob; 11-23-2007 at 03:56 AM.

  2. #2
    Forum Expert dominicb's Avatar
    Join Date
    01-25-2005
    Location
    Lancashire, England
    MS-Off Ver
    MS Office 2000, 2003, 2007 & 2016 365
    Posts
    4,867

    Smile

    Good morning niharika

    OK. First open Excel with just one file open (say test.xls).
    Press Alt + F11, this will open the VBE (Visual Basic Environment).
    In the Project window (left hand side) click on your file (test.xls).
    Then go to Insert > Module.
    Paste the code you've got (my module?) into the big blank window that opens.
    Go to File > Close and Return to Microsoft Excel.
    When you save the file, the Macro will be saved with it.
    To run the macro go to Tools > Macro > Macros, select the name of the module and click Run.

    HTH

    DominicB
    Please familiarise yourself with the rules before posting. You can find them here.

  3. #3
    Registered User
    Join Date
    01-13-2007
    Posts
    71
    you should first start recording a macro while you play with the excel, to see how the VBA coding works.
    then follow the steps dominic wrote to read the code and start understanding it.
    its a long run, dont try to understand some complicated codes right in the beggining.

+ 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