Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I get message box from the msgbox, but I get out of range fwhen I assign the
range to my DestSheetRange. Any suggestions? Your help is great appreciated, Here is my code, Response = MsgBox(Application.ActiveSheet.Range("B11").Value, vbOKOnly) Dim DestSheetRange As Range DestSheetRange = Sheets("sheet1").Range("B11") |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() Set DestSheetRange = Sheets("sheet1").Range("B11") -- --- HTH Bob (there's no email, no snail mail, but somewhere should be gmail in my addy) "Souris" wrote in message ... I get message box from the msgbox, but I get out of range fwhen I assign the range to my DestSheetRange. Any suggestions? Your help is great appreciated, Here is my code, Response = MsgBox(Application.ActiveSheet.Range("B11").Value, vbOKOnly) Dim DestSheetRange As Range DestSheetRange = Sheets("sheet1").Range("B11") |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Check your spelling of that worksheet name--I don't think "Sheet1" exists in the
active workbook. and remember you'll need to use the Set statement when you're working with objects (like Ranges): dim DestSheetRange as Range Set DestSheetRange = Sheets("SpelledCorrectly").range("B11") Souris wrote: I get message box from the msgbox, but I get out of range fwhen I assign the range to my DestSheetRange. Any suggestions? Your help is great appreciated, Here is my code, Response = MsgBox(Application.ActiveSheet.Range("B11").Value, vbOKOnly) Dim DestSheetRange As Range DestSheetRange = Sheets("sheet1").Range("B11") -- Dave Peterson |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Thanks for message,
"Dave Peterson" wrote: Check your spelling of that worksheet name--I don't think "Sheet1" exists in the active workbook. and remember you'll need to use the Set statement when you're working with objects (like Ranges): dim DestSheetRange as Range Set DestSheetRange = Sheets("SpelledCorrectly").range("B11") Souris wrote: I get message box from the msgbox, but I get out of range fwhen I assign the range to my DestSheetRange. Any suggestions? Your help is great appreciated, Here is my code, Response = MsgBox(Application.ActiveSheet.Range("B11").Value, vbOKOnly) Dim DestSheetRange As Range DestSheetRange = Sheets("sheet1").Range("B11") -- Dave Peterson |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
out of range error message | Excel Programming | |||
Continuation of message Range Names | Excel Programming | |||
Change message to include range | Excel Programming | |||
Subscript Out Of Range Error Message | Excel Programming | |||
How Do I Display a Range of Cells in A Message Box Using VBA? | Excel Programming |