Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi;
i'm trying to capture a value in a range. I have the following codeattched to the click action on a button in my "Results" sheet: Dim LastDataRow As Integer LastDataRow = Worksheets("Data").Range("E1").Value When the above line is reached, I get a "Run time error '9' Subscript out of range" error message. Cell E1 of the worksheet labelled "Data" has the value 9 in it. I tried displaying the value of it by the line : MsgBox Worksheets("Data").Range("E1").Value which was placed just before the problem line. When the MsgBox line executed, the value was blank in the message box. I'm at a loss as to what the problem is. Any help is greatly appreciated. -- JJFJR |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
How do I enter formula sum(range+range)*0.15 sumif(range=3) | Excel Discussion (Misc queries) | |||
Excel Addin:Setting the range to the Excel.Range object range prop | Excel Worksheet Functions | |||
Type Mismatch error & subscript out of range error | Excel Programming | |||
Range Question / error 1004: method Range of object Worksheet has failed | Excel Programming | |||
Adding named range gives error "method range of object _Global failed " | Excel Programming |