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

Waterfall charts in Excel?
Office 365 customers have access to Waterfall charts since late 2016. They were added to Excel 2019.

Norie

Well-known Member
Joined
Apr 28, 2004
Messages
76,329
Office Version
  1. 365
Platform
  1. Windows
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.
 
Master Excel Bundle

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

Forum statistics

Threads
1,152,096
Messages
5,768,061
Members
425,451
Latest member
JohnBrooksBiddle

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