×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Edit Add-In and userined function (.xla)

Edit Add-In and userined function (.xla)

Edit Add-In and userined function (.xla)

(OP)
Hi,

I have been using a .xla file in the xlstart folder for a long time (originally sourced early during my career) which contains various useful custom built functions for my area of work.

I can access the functions built in the .xla file perfectly from within Excel in my computer (under "User Defined Functions") without any problem.

I weas intending to make some small modifications to some of the functions. Embarrasingly I could not see the code for the function definitions. When I go to Visual basic editor in the wrksheet, I can see the .xla file as a VBA project, which when expanded, shows a folder "Microsoft Excel Objects" and under that a spreadsheet object "This Worksheet" - but there is no code that opens up on the editor that I expected to see for the in-built functions.

Where and how are the scripts for the functions hidden?

regards,  
Replies continue below

Recommended for you

RE: Edit Add-In and userined function (.xla)

sbnz,

Is this a proprietary add-in, or was it created by a past employee?  If you can look into it then it is obviously not password protected.  

Try this:
Make sure no macros are running by pressing the Stop button.  In the macro editor, select Tools from the menu, then select References.  From the dialog box that appears, scroll down and find the name of the add-in.  It will not be in alphabetical order, but fortunately for you all add-ins are usually listed very close to the top.  It should be listed just as the name appears in the Project Window.  Make sure the box next to the add-in is checked, then click okay.  This will add all of the functions to your object browser.

Now, open the object browser.  From the top drop down list box, select the name of the add-in.  You should now be able to view all of the functions, subroutines, user forms, spreadsheets, class modules, etc. in that add-in.  Now, right-click on the function of interest.  If you are allowed to access them, the "View Definition" option will not be grayed out. Select "View Definition" if it is available and this will take you to the function code.

-Joshua
Well, You can try banging your head against the wall, but you just end up with lost-time injuries and damaged equipment. [M. Passman]

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members! Already a Member? Login



News


Close Box

Join Eng-Tips® Today!

Join your peers on the Internet's largest technical engineering professional community.
It's easy to join and it's free.

Here's Why Members Love Eng-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close