![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
New Member
Join Date: Mar 2002
Posts: 9
|
Sheets("Sheet3").Activate
Range("B8").Select This produces a runtime error 9 Subscript out of range I wish to switch to sheet 3 (Message) and sect cell B8 Can anyone sort this Thanks Craig |
|
|
|
|
|
#2 |
|
Board Regular
Join Date: Mar 2002
Location: Wellington
Posts: 104
|
Hi,
Does you active workbook contain a sheet with the name of "sheet3" |
|
|
|
|
|
#3 |
|
MrExcel MVP
Join Date: Feb 2002
Location: Central Florida, USA
Posts: 7,541
|
Try:
Sheets("Sheet3").Select Range("B8").Select Hope this helps? JSW |
|
|
|
|
|
#4 |
|
Board Regular
Join Date: Mar 2002
Posts: 88
|
use actual sheet name instead of "sheet3"
Worksheets("Message").Activate |
|
|
|
|
|
#5 |
|
MrExcel MVP
Join Date: Feb 2002
Location: Columbus, OH, USA
Posts: 3,519
|
"Sheet3" was the actual name in the original post. I supplied that code originally.
|
|
|
|
|
|
#6 |
|
Board Regular
Join Date: Mar 2002
Posts: 88
|
Ah ok - I gotcha..
on a hunch try WorkSheet. instead of Sheets. |
|
|
|
|
|
#7 |
|
Board Regular
Join Date: Mar 2002
Posts: 88
|
Worksheets.
I mean |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|