+ Reply to Thread
Results 1 to 5 of 5

Remove external path from macro assignments

  1. #1
    Registered User
    Join Date
    03-24-2014
    Location
    Vienna, Austria
    MS-Off Ver
    Excel 2010
    Posts
    72

    Remove external path from macro assignments

    Hey, I need to remove the external paths in my macro assignments. I only use shapes. (no active x/form controls)

    I tried that, but it won't work for me:

    http://www.ozgrid.com/forum/showthread.php?t=93459


    example of an assignment: 'G:\10_excel\tool\show\PPI\update.xlam'!button_last12
    => should be button_last12 after i run the desired macro

    Please help me
    Last edited by chrisignm; 07-15-2014 at 06:30 AM.

  2. #2
    Forum Expert
    Join Date
    01-23-2013
    Location
    USA
    MS-Off Ver
    Microsoft 365 aka Office 365
    Posts
    3,863

    Re: Remove external path from macro assignments

    Hi,

    The reference you listed works, but only on Forms Command Buttons. Try the following which should work on SHAPES only:
    Please Login or Register  to view this content.
    Lewis

  3. #3
    Registered User
    Join Date
    03-24-2014
    Location
    Vienna, Austria
    MS-Off Ver
    Excel 2010
    Posts
    72

    Re: Remove external path from macro assignments

    Thanks. I saw that I also had some form controls buttons. It worked for them, but not for the shapes

    edit: I tried that, both won't work:

    Sub wizardmaster()
    ActiveSheet.Shapes("Last3_1 Inside").Select
    Selection.OnAction = "button_last3"
    End Sub

    Sub test()
    Worksheets("Tool").Shapes("Last3_1 Inside").OnAction = "wizardmaster"
    End Sub => runtime 1004 here


    I tried several onAction formulas now, neither of them worked. Maybe it's because I have codes in Option Explicit in the very beginning?
    Last edited by chrisignm; 07-15-2014 at 08:42 AM.

  4. #4
    Registered User
    Join Date
    03-24-2014
    Location
    Vienna, Austria
    MS-Off Ver
    Excel 2010
    Posts
    72

    Re: Remove external path from macro assignments

    I got it working!

    Please Login or Register  to view this content.
    Could you please tell me how to assign those commands to all shapes on the sheet? (if not, I could also list them manually, it's around 10 shapes)

    Thanks
    Last edited by chrisignm; 07-15-2014 at 08:54 AM.

  5. #5
    Forum Expert
    Join Date
    01-23-2013
    Location
    USA
    MS-Off Ver
    Microsoft 365 aka Office 365
    Posts
    3,863

    Re: Remove external path from macro assignments

    I'm not quite sure what you want. The following is one way to assign macros to shapes based on the shape name:

    Please Login or Register  to view this content.
    Lewis

+ 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. Need a Macro to find Which Assignments are Good for Closure
    By pitamber in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-14-2013, 02:15 AM
  2. Replies: 2
    Last Post: 06-20-2012, 09:08 PM
  3. Macro that will Identify Conflicting Unit Assignments of Persons
    By trulyrich8 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-25-2011, 06:15 AM
  4. How to remove path from macro reference
    By seppo in forum Excel General
    Replies: 2
    Last Post: 02-22-2006, 03:08 AM
  5. [SOLVED] macro assignments on toolbar go to 'save as' file
    By runandrun in forum Excel General
    Replies: 1
    Last Post: 09-25-2005, 06:05 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