+ Reply to Thread
Results 1 to 6 of 6

Run a Macro by clicking a cell

  1. #1
    Registered User
    Join Date
    10-27-2006
    Posts
    60

    Run a Macro by clicking a cell

    Hi all need a little help with this one.

    I have created macros to change pivot table data to specific settings.
    I also have a list of items that are relevant to that data, How can i run one of the Macros by clicking on the heading in the list.

    Any Ideas

    Neil

  2. #2
    Forum Expert Carim's Avatar
    Join Date
    04-07-2006
    Posts
    4,070
    Hi,

    By placing a command button in your spreadsheet ...


    HTH
    Carim

  3. #3
    Registered User
    Join Date
    10-27-2006
    Posts
    60
    Many Thanks

    I dont know how to do it but will have a look through the help files.

  4. #4
    Forum Expert Carim's Avatar
    Join Date
    04-07-2006
    Posts
    4,070
    Well ..

    View ToolBars Control ToolBox
    Click on command button
    view code
    to add
    Application.Run("yourmacro")

    that's it ...

    HTH
    Carim

  5. #5
    Registered User
    Join Date
    10-27-2006
    Posts
    60
    Brilliant.....

    Worked a treat,

    Neil

  6. #6
    Forum Expert Carim's Avatar
    Join Date
    04-07-2006
    Posts
    4,070
    Glad your problem's fixed

    Thanks for the feedback

    Carim

+ 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