+ Reply to Thread
Results 1 to 5 of 5
  1. #1
    Registered User
    Join Date
    04-15-2009
    Location
    Colorado, USA
    MS-Off Ver
    Excel 2003
    Posts
    4

    macro and xla linking problems

    Hi, I have made a program that uses macros to copy items from one sheet to another. Very simple really, but i can not link macros recorded in a xla file to buttons on my xls workbook. I have a custom toolbar and it calls macros from the same xla file fine, but when I click on a button on the workbook, that is supposed to run a macro, it tells me "the macro 'xxxx' can not be found" Why would the toolbar work and not a button on a sheet?
    Last edited by jeeper74; 04-16-2009 at 05:56 PM. Reason: change in problem

  2. #2
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & read 2007
    Posts
    15,495

    Re: macro and xla linking problems

    Hello jeeper74,

    How are you calling the xla macro in your code?
    Sincerely,
    Leith Ross

    Remember To Do the Following....

    1. Use code tags. Place [CODE] before the first line of code and [/CODE] after the last line of code.
    2. Thank those who have helped you by clicking the Star below the post.
    3. Please mark your post [SOLVED] if it has been answered satisfactorily.


    Old Scottish Proverb...
    Luathaid gu deanamh maille! (Rushing causes delays!)

  3. #3
    Registered User
    Join Date
    04-15-2009
    Location
    Colorado, USA
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: macro and xla linking problems

    I think i have a workaround figured out... I can still use the macros through a userform, so I am trying to do that now.

  4. #4
    Registered User
    Join Date
    04-15-2009
    Location
    Colorado, USA
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: macro and xla linking problems

    I renamed my macro from endmht to blankpage, and i can now link to it. does the end in the name generate problems? or is this some unique case?

  5. #5
    Forums Administrator royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    24,445

    Re: macro and xla linking problems

    Is yout toolbaar attached to the addin?
    Hope that helps.

    RoyUK
    --------
    If you are pleased with a member's answer then use the Star icon to rate it, if you are pleased enough to part with cash consider a donation to Children in Need

    For Excel consulting, free examples and tutorials visit Excel Consulting-Excel VBA
    Check out the free Excel Toolbar

    New members please read & follow the Forum Rules

    Remember to mark your questions Solved and rate the answer(s)


    Code Tags: Make your code easier for us to read

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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.2.0