Mike,
Procedures of any sort, in an add-in or not, cannot change ANYTHING in the
Excel environment when called directly or indirectly from a worksheet cell.
If you just want to call a sub in the AddIn from other VBA code (not from a
worksheet cell), use the Run method. E.g.,
Application.Run "MyAddIn.xla!MyMacro"
--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com
(email address is on the web site)
"mike allen" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> can i "call" a subroutine that is held in an add-in? all i know i can do
> pertains to functions (not sub's): i can type, in a cell on a spreadsheet,
> =myfuntion(a,b) and it will return c in that cell.
> i want the equivalent of hitting a user-created button that i created
> (forms, button icon, referencing a subroutine in the list). the only
> difference is my subroutine (not function) will be within an add-in, not
> within a module.
> is this possible? thanks
>