XL3/XL4: Macro to Open an Add-in for Editing

ID: Q100944


The information in this article applies to:


SUMMARY

In the versions of Microsoft Excel listed above, it is possible to create a macro that will open an add-in macro sheet so that you can edit it.


MORE INFORMATION

To manually open a Microsoft Excel add-in macro sheet for edit it, you have to hold down the SHIFT key when you open the file. To simulate this behavior in a macro, use the method appropriate to your version of Microsoft Excel.

Microsoft provides programming examples for illustration only, without warranty either expressed or implied, including, but not limited to, the implied warranties of merchantability and/or fitness for a particular purpose. This article assumes that you are familiar with the programming language being demonstrated and the tools used to create and debug procedures. Microsoft support professionals can help explain the functionality of a particular procedure, but they will not modify these examples to provide added functionality or construct procedures to meet your specific needs. If you have limited programming experience, you may want to contact the Microsoft fee-based consulting line at (800) 936-5200. For more information about the support options available from Microsoft, please see the following page on the World Wide Web:

http://www.microsoft.com/supportnet/refguide/



Microsoft Excel Version 3.0 or 4.0

To open an add-in macro for editing in Microsoft Excel version 3.0 or 4.0, you can use the following sample macro code


   A1: =OPEN("ADDIN.XLA")
   A2: =ACTIVATE("ADDIN.XLA")
   A3: =NEW.WINDOW()
   A4: =ACTIVATE("ADDIN.XLA:1")
   A5: =CLOSE()
   A6: =RETURN() 


where:

Microsoft Excel for Windows or OS/2

To open an add-in macro for editing in Microsoft Excel for Windows or Microsoft Excel for OS/2, you can use the following sample macro code


   A1: =SEND.KEYS("%FO",TRUE)
   A2: =SEND.KEYS("ADDIN.XLA+~",TRUE)
   A3: =RETURN() 


where:

NOTE: This second method does not work in Microsoft Excel for the Macintosh because the SEND.KEYS() command is not available in Microsoft Excel for the Macintosh.


REFERENCES

"Function Reference," version 4.0, page 385
"Function Reference," version 3.0, pages 214-215

Additional query words: 4.00a addin international hidden howto XL3 XL4


Keywords          : kbmacro 
Version           : WINDOWS:3.0,4.0,4.0a; OS/2:3.0; MACINTOSH:3.0,4.0
Platform          : MACINTOSH OS/2 WINDOWS 
Issue type        : kbinfo 

Last Reviewed: May 17, 1999