If activesheet

Paddy1979

Well-known Member
Joined
Sep 23, 2005
Messages
608
Hello all,

Please can you adivse me on how to write this code.

i'm trying to make the macro check the activesheet name is Good Diff. before executing the rest of the code.

I've tried - If Activesheet = ("Good Diff.") Then

but it dosent work can anybody help.

Thanks in advance
 

Excel Facts

How to total the visible cells?
From the first blank cell below a filtered data set, press Alt+=. Instead of SUM, you will get SUBTOTAL(9,)

pgc01

MrExcel MVP
Joined
Apr 25, 2006
Messages
19,884
Hi Paddy1979

Try:

If Activesheet.Name = "Good Diff." Then

HTH
PGC
 

DominicB

Well-known Member
Joined
Oct 3, 2005
Messages
1,569
Good afternoon Paddy1979

Nearly there! Try this :
Code:
If ActiveSheet.Name = ("Good Diff.") Then

HTH

DominicB
 

Forum statistics

Threads
1,141,757
Messages
5,708,336
Members
421,566
Latest member
7Nabisco

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