Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Using an excel addin to call macros in current sheet.

I have a bunch of different worksheets with different macros that work
on the individual sheet. They all have the same name, and work
differently depending on the sheet.

I want to create a toolbar with two buttons, that calls macros in the
opened sheet, but I cannot seem to find my way around the problem I
encounter with excel not allowing me to call the macro using only
activeworkbook.macroname.

I don't want to paste all the macros into the addin I'm using, and
just detecting name of sheet to determin witch one to go with, so I'm
wondering what I can be doing wrong, and what I should be doing to get
this working.

So far I've been trying to work my way around this problem by
declaring the activeworkbook as an object, but that doesn't seem to do
it either.

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How map types when call functions defined in XLL AddIn from VBA Ravil Excel Programming 1 March 23rd 06 10:49 PM
Call Excel from VB6 disabling macros Derek Hardison via OfficeKB.com Excel Programming 3 December 23rd 04 03:39 AM
Can I call my .Net functions from Excel Macros Yuhong Excel Programming 1 December 3rd 04 07:29 PM
Disable call for Addin Marc[_16_] Excel Programming 2 December 12th 03 10:11 PM
COM addin call missing ken Excel Programming 0 July 22nd 03 03:39 PM


All times are GMT +1. The time now is 11:06 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"