Add-In woes

Giordano Bruno

Well-known Member
Joined
Jan 7, 2007
Messages
1,322
I have a workbook called CATS-01.xls. It contains a macro called Rect13.

I have saved the workbook as a .xla. In another workbook I have a macro with the following line:

Application.Run ("CATS-01.xla!Rect13").

I have added CATS-01 to my list of Add-Ins, but the above line fails with the message:

Run time error '1004':
The macro 'CATS-01.xla!Rect13'

CATS-01 is visible in the project window and the macro Rect13 is there also.

Is anyone able to suggest the source of the error?
 

Excel Facts

Copy a format multiple times
Select a formatted range. Double-click the Format Painter (left side of Home tab). You can paste formatting multiple times. Esc to stop

Giordano Bruno

Well-known Member
Joined
Jan 7, 2007
Messages
1,322
For the record, I believe that I have solved the mystery. When I removed the dash from the name, the code worked.
 
Upvote 0

Forum statistics

Threads
1,190,631
Messages
5,982,029
Members
439,750
Latest member
megaman777

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Top