+ Reply to Thread
Results 1 to 3 of 3

use function and sub from personal.xla

  1. #1
    Forum Contributor
    Join Date
    01-10-2006
    Location
    Ahmedabad, India
    MS-Off Ver
    Office 2000
    Posts
    346

    use function and sub from personal.xla

    I have some functions and subs written and stored in personal.xls. I can use functions as worksheet functions in my worksheet. Also I have created buttons on the tool bars and these buttons are assigned to the subs in the personsl.xla. This also works fine. But if I want to use the function or any of these macros in my procedure how do I do that? eg. One of the macros is Test(). If I want to call it from my procedure just by having a line "Test" does not work ( undefined function or macro error ). I need to tell the excel that it is in personal.xla. What is the syntax?

    Thanks

    A V Veerkar

  2. #2
    Registered User
    Join Date
    08-13-2007
    Posts
    2
    Try this

    Application.Run "personal.xls!Test"

    also, I think Test must be Public rather than Private.

    Good luck,

    Mark

  3. #3
    Forum Contributor
    Join Date
    01-10-2006
    Location
    Ahmedabad, India
    MS-Off Ver
    Office 2000
    Posts
    346
    Quote Originally Posted by mlafentres
    Try this

    Application.Run "personal.xls!Test"

    also, I think Test must be Public rather than Private.

    Good luck,

    Mark
    Thanks. That works.

+ 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