macro working at work but not at home.

semidevil

New Member
Joined
Jul 9, 2007
Messages
35
so I have an excel sheet with a macro assigned to a button. I click on the button, it will clear the contents from a range of cell, and input the formulas back in for me so I can use it again.

At my work computer, it works perfectly fine. I forward a copy of the excel sheet to my home computer to test it.

When I click the button, I get an error:
'complie error, named arguement not found'

this in my code is highlighted in blue: "SearchFormat:="

why would it give me an error here but not at work? I dont particularly know what the error itself means(still very new to VBA).

my work pc is office 2003 and I"m using office 2000. unsure if that is the difference. but I have to give a presentation so I want to make sure it works.
 

Excel Facts

Did you know Excel offers Filter by Selection?
Add the AutoFilter icon to the Quick Access Toolbar. Select a cell containing Apple, click AutoFilter, and you will get all rows with Apple
Well I think the error message is quite straightforward.:)

It's telling you that that argument isn't used with that method, the SearchFormat argument was introduced post-2000.

So just delete the argument - it probably won't make any difference.
 
Upvote 0

Forum statistics

Threads
1,214,943
Messages
6,122,380
Members
449,080
Latest member
Armadillos

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