+ Reply to Thread
Results 1 to 2 of 2

xla files

Hybrid View

Marcelo Rychter xla files 08-21-2007, 05:45 PM
rylo Hi 1) yes you can. 2)... 08-21-2007, 06:37 PM
  1. #1
    Registered User
    Join Date
    06-03-2006
    Location
    Rio de Janeiro
    MS-Off Ver
    Microsoft Office 365
    Posts
    41

    xla files

    Can I use general procedures in xla files, beyond only functions? I would like to use xla files to store many procedures that are not functions (sub <name>).

    If positive, how do I invoke a procedure that resides in a xla file?

    Thanks in advance,
    Marcelo Rychter

  2. #2
    Forum Expert
    Join Date
    01-15-2007
    Location
    Brisbane, Australia
    MS-Off Ver
    2007
    Posts
    6,591
    Hi

    1) yes you can.

    2) Say you have a sub in module1 in your addin.
    sub bbb()
    msgbox "fred"
    end sub
    The addin has been enabled in you tools, addin area.

    In a general module in an open workbook, enter the code.

    sub aaa()
    application.run "module1!bbb"
    end sub
    Run the code and the message fred should appear.

    If you want to, create a toolbar icon and attach the macro to that button.


    HTH

    rylo
    Last edited by rylo; 08-21-2007 at 06:39 PM.

+ 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