Writing vs. recording Add ins HELP

bdunk

Active Member
Joined
Aug 1, 2002
Messages
290
I have written a macro by opening a new workbook going to the VB editor and writing code in a new module. The code is as follows:

Sub Delete_PartQty1()
With Columns(1)
.Replace what:="0", replacement:="1", LookAt:=xlWhole
.SpecialCells(4).EntireRow.Delete
End With
End Sub

I then leave the editor and save the file as a .xla file in the Add Ins folder.

When I go in to Excel and activate the macro in the AddIns list and try to assign a button to execute this add in I can not get it to recognize the add in name. I am typing the name properly.

When I record a new macro and save the file as a .xla file I have no problems assigning a button to this add in. Is something I am not doing when I write my own add in vs recording it with the macro recorder?
 

Excel Facts

Select all contiguous cells
Pressing Ctrl+* (asterisk) will select the "current region" - all contiguous cells in all directions.

Forum statistics

Threads
1,214,789
Messages
6,121,605
Members
449,038
Latest member
Arbind kumar

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
Back
Top