Pinaceous
Well-known Member
- Joined
- Jun 11, 2014
- Messages
- 1,124
- Office Version
- 365
- Platform
- Windows
Hi All,
I'm working on a sub to apply it on a workbook with 26 worksheets in it.
So how do I use
to say something like ...
If active curser is on worksheet 26 then
then
So on, if active curser is on worksheet 24 then
then
Does anyone see where I'm going with this?
Many thanks for your help.
Respectfully,
Pinaceous
I'm working on a sub to apply it on a workbook with 26 worksheets in it.
So how do I use
Code:
Select Case True
If active curser is on worksheet 26 then
Code:
Case Worksheet(26)
Code:
.Subject = Worksheets(26).Range("O18").Value .Display
So on, if active curser is on worksheet 24 then
Code:
Case Worksheet(24)
Code:
.Subject = Worksheets(24).Range("O18").Value .Display
Does anyone see where I'm going with this?
Many thanks for your help.
Respectfully,
Pinaceous