Worksheet Set - question on Set?

itr674

Well-known Member
Joined
Apr 10, 2002
Messages
1,790
Office Version
  1. 2016
Platform
  1. Windows
When I use this code:

Set MenuSheet = ThisWorkbook.Sheet2

I get - "Compile Error: Method or Data Member Not Found."

I have declared MenuSheet with - Dim MenuSheet As Worksheet

When I use:

Set MenuSheet = ThisWorkbook.Sheets(2)

Everything works fine???
This message was edited by em on 2002-10-18 09:36
 
TsTom,

Plain English.

Thanks for today's english lesson :wink:

Hopefully the use of the name "class" does not complicated even more for the OP!

Kind regards,
Dennis
a regular swedish guy
 
Upvote 0

Excel Facts

Enter current date or time
Ctrl+: enters current time. Ctrl+; enters current date. Use Ctrl+: Ctrl+; Enter for current date & time.
TsTom--thanks I will try your code later today or the other ...

My problem is that I do a lot of copying of code--but I understand what it's doing only about 50% of the time!!

Maybe one day I wll understand more--Thanks for all the help ...

I will have a more interesting question coming up later today ...
This message was edited by em on 2002-10-13 12:44
 
Upvote 0

Forum statistics

Threads
1,224,884
Messages
6,181,568
Members
453,053
Latest member
Kiranm13

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