Object Variable Error

dubczech

Board Regular
Joined
Apr 29, 2008
Messages
52
I'm getting the "Object Variable Not Set" Error on the following lines of code:

Cells.Find(What:="Current Brand").Activate
ActiveCell.Offset(0, 1).Activate
Curr_Brand = ActiveCell.Value

'Curr_Brand is defined as a String.

Any help would be great.

Thanks,
 

Excel Facts

Get help while writing formula
Click the italics "fx" icon to the left of the formula bar to open the Functions Arguments dialog. Help is displayed for each argument.
It means that the value wasn't found, so there is no cell to activate.

When using Find, you should always specify LookIn, LookAt, SearchOrder, and MatchByte, because their values persist from those set in the user interface for previous Finds.
 
Upvote 0
This does not help the issue. Even when I define all of the optional components in the find command, I still get the same error.
 
Upvote 0

Forum statistics

Threads
1,224,558
Messages
6,179,512
Members
452,920
Latest member
jaspers

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