+ Reply to Thread
Results 1 to 6 of 6

Assign Macro to custom tool bar icon?

  1. #1
    Registered User
    Join Date
    05-08-2009
    Location
    Australia
    MS-Off Ver
    Excel 2003
    Posts
    13

    Assign Macro to custom tool bar icon?

    I would like to assign a specific macro to a custom toolbar icon, permanently available in Excel, but only active if you open a workbook whose title end in "_order.xls" , the section in front of the underscore being variable.

    Is this possible?

  2. #2
    Forum Contributor
    Join Date
    01-17-2013
    Location
    Belgium
    MS-Off Ver
    Excel 2010
    Posts
    211

    Re: Assign Macro to custom tool bar icon?

    http://office.microsoft.com/en-gb/ex...005202306.aspx (Start a macro from a toolbar button)
    If solved remember to mark Thread as solved , to mark your thread as Solved select Thread Tools and click Mark thread as Solved.

    I can't read the mind of my wife so then I get picture but no sound .... and then I mostly get the idea, same goes here picture your outcome and I get the idea.

  3. #3
    Registered User
    Join Date
    05-08-2009
    Location
    Australia
    MS-Off Ver
    Excel 2003
    Posts
    13

    Re: Assign Macro to custom tool bar icon?

    Thanks hulpeloos, I appreciate your quick response.
    I am aware of how to create a new button and assign a macro to it...My fault I should have been more specific.
    I am trying to render the newly created button, and therefore the macro, active only when I open any excel worksheet specifically named "*"_order.xls and inactive, therefore unusable, in any other circumstance. I want the resultant button to be permanently in the Excel toolbar no matter which workbook I open though.

  4. #4
    Forum Contributor
    Join Date
    01-17-2013
    Location
    Belgium
    MS-Off Ver
    Excel 2010
    Posts
    211

    Re: Assign Macro to custom tool bar icon?

    Well ok it will not be inactive but it will not run either when you select 'this workbook' or 'specific name' in the "macro's in :" option when assigning the macro to the button. (since your in 2003)
    Last edited by hulpeloos; 09-04-2013 at 07:48 AM.

  5. #5
    Registered User
    Join Date
    05-08-2009
    Location
    Australia
    MS-Off Ver
    Excel 2003
    Posts
    13

    Re: Assign Macro to custom tool bar icon?

    Thanks.
    I'm limited to 2003 because of peripheral progs (access and a half dozen windows 95 based applications) which are dependent on Windows XP or earlier compatibility.
    I am therefore learning backwards......

  6. #6
    Forum Contributor
    Join Date
    01-17-2013
    Location
    Belgium
    MS-Off Ver
    Excel 2010
    Posts
    211

    Re: Assign Macro to custom tool bar icon?


+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 0
    Last Post: 01-15-2013, 08:18 PM
  2. Creating Custom Tool Bar/Buttons To Run A Macro
    By cheddarthief in forum Excel General
    Replies: 10
    Last Post: 09-15-2011, 02:07 PM
  3. Replies: 2
    Last Post: 01-18-2008, 11:45 AM
  4. Tool bar Icon...again
    By IamNutz in forum Excel General
    Replies: 1
    Last Post: 02-10-2007, 07:06 PM
  5. [SOLVED] custom borders icon to use on the tool bar
    By robin in forum Excel General
    Replies: 4
    Last Post: 02-10-2005, 05:06 PM

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