Range help

gmagerr

New Member
Joined
Jul 18, 2010
Messages
41
Hi,

I have a dropdown in my worksheets that starts at cell A2 in a table. I'm doing some if then logic based on that cells data. The problem is in my initial attempt, I only used cell A2 as the range, so of course the logic only works if cell A2 has changed and doesn't work for any of the other row changes (A3, A4, etc) How can I make the if than statement work for all the row changes in column A? Since it's a table, I'd need to not include the table, I did try A:A, but got a type mismatch error. Here's what I have in code.

Thanks

Code:
If Sheets("Santa Monica").Range("A2") = "Removed" Or Sheets("Santa Monica").Range("A2") = "Sent to DC" Or Sheets("Santa Monica").Range("A2") = "Sent to PGH" Then
 

Excel Facts

Last used cell?
Press Ctrl+End to move to what Excel thinks is the last used cell.

Forum statistics

Threads
1,224,599
Messages
6,179,828
Members
452,946
Latest member
JoseDavid

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