Results 1 to 2 of 2

Very Elementary VBA question

Threaded View

  1. #1
    Registered User
    Join Date
    02-01-2005
    Posts
    4

    Very Elementary VBA question

    Hi All,

    I'm teaching myself very basic macro-writing as I try and develop them into Excel models. I wrote an extremely easy Select...case function and it works fine within the worksheet it was created in. However, if I were to copy that worksheet's tab over to a new worksheet, the function no longer. I'm assuming that that is because that specific worksheet doesn't recognize the code, so I have been copying over the original worksheet's modules into the new worksheets. This seems like something I can fix with a simple declaration, but I don't know what that declaration would be. I also copied the macro's code into the Personal.XLS module, thinking that would make the function universal, but now in order to call up the function in Excel, I would have to write =Personal.XLS!functionname, or something like that.

    I would appreciate any help making my function a "universal" function that would automatically be associated with that specific tab, no matter where it is copied. Thank you very much, I'm sorry for the basic question.

    Jan
    Last edited by CptNemo; 03-16-2005 at 07:13 PM.

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