+ Reply to Thread
Results 1 to 3 of 3

Custom Icons...

  1. #1
    Registered User
    Join Date
    01-21-2007
    Location
    UK
    Posts
    26

    Custom Icons...

    Hi,


    I have tied a macro into a custom icon i have created in the standard toolbar--- however this icon isnt saved with the workbook, its saved as part of excel.. problem is i want this icon to be attached to this workbook rather than just my excel.

    how can i do this?

  2. #2
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,483

    Create Custom ToolBars VBA

    Hi,

    here's something to test out

    open a new workbook

    press alt-f11
    select insert from the menu, insert module

    copy and paste this code there
    Please Login or Register  to view this content.

    in the workbook Module
    At the top of the screen next to the word file there should be an XL icon

    right click on the icon and select view code, now you are in the workbook module,
    Paste this code into that module
    Please Login or Register  to view this content.
    save the workbook and exit
    open the workbook again and your custom toolbar show up, open another workbook the new workbook should not have the toolbar, return to the first workbook and the toolbar should be there, when you close the workbook the toolbar will be deleted.
    Last edited by davesexcel; 02-27-2007 at 07:13 AM.

  3. #3
    Registered User
    Join Date
    01-21-2007
    Location
    UK
    Posts
    26
    Thanks very much thats exactly what i needed!..

+ 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