Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Sub tEST()
Dim LastRow As Long Dim myRng As Range Dim WS As Worksheet Set WS = Sheets("DATA 2") '<<< Ganti jika perlu With WS LastRow = .Cells(.Rows.Count, "Q").End(xlUp).Row Set myRng = .Range("Q11:Q" & LastRow) MsgBox myRng.Count End With End Sub ================================================ Hi all, is there something wrong with the above code.? Actually,there is no any data on the .Range("Q11:Q" & LastRow) Why does the msgbox return the value 2 instead 0?. rgds, Shiro |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Wrong results from MATCH function | Excel Worksheet Functions | |||
LOOKUP Function gives wrong results | Excel Worksheet Functions | |||
VLOOKUP Formula Returns the Wrong Results. | Excel Worksheet Functions | |||
Array formula returning wrong results | Excel Discussion (Misc queries) | |||
macro results wrong | Charts and Charting in Excel |