Consulting

Results 1 to 5 of 5

Thread: Calling function from add-in

  1. #1
    Site Admin
    Urban Myth
    VBAX Guru
    Joined
    May 2004
    Location
    Oregon, United States
    Posts
    4,940
    Location

    Calling function from add-in

    Yeah, that's how I've got the string. Not sure what I have done different this morning from last night, but it's working now. I probably had a typo or something.

    Thanks Jacob!!

  2. #2
    Knowledge Base Approver
    The King of Overkill!
    VBAX Master
    Joined
    Jul 2004
    Location
    Rochester, NY
    Posts
    1,727
    Location
    Zack,
    In the off chance you need to identify the module as well, you could use the format

    AddIn.xla!modulename.macroname
    Only really necessary if you have two subs of the same name in two different modules

    Matt

  3. #3
    Site Admin
    Urban Myth
    VBAX Guru
    Joined
    May 2004
    Location
    Oregon, United States
    Posts
    4,940
    Location
    Yeah, that was my first problem, but I figured that out quick enough. The actual problem was I referred to the add in like "Addinname!routinename" and it should have been "addinname!routinename". So I found out it was case sensitive.

    Thanks for the help!

  4. #4
    Site Admin
    Jedi Master
    VBAX Guru Jacob Hilderbrand's Avatar
    Joined
    Jun 2004
    Location
    Roseville, CA
    Posts
    3,712
    Location
    Yeah, VBA is very sensitive about its Text Names. Anyways glad to help.

    Later

    Jacob

  5. #5
    VBAX Regular Mike_R's Avatar
    Joined
    May 2004
    Location
    Plainsboro, NJ
    Posts
    46
    Location
    Quote Originally Posted by mvidas
    In the off chance you need to identify the module as well, you could use the format

    AddIn.xla!modulename.macroname

    Only really necessary if you have two subs of the same name in two different modules

    Matt
    Actually, this is also really useful when calling Subs that reside within the Worksheet Class Module or the 'ThisWorkbook' Class Module. In fact, it's the only way to access them in this case...

    ,
    Mike
    Try out the [VBA] tags!
    Option Explicit, don't leave home without it...


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •