i'm getting compile error and expected array as message while iam running VBA script...
the script is as follows....
Dim Lastrow as Long
Range("A1:A10").Value=10
rowcount=lastrow(sheet1).cells("A"&rows.count).End(x1up).Row
msgbox ("no of rows is" & rowcount)
Note: I can do row count with other syntax but i want to learn with above script...if u can explian detailly would be more appriciate...
Thank you....
the script is as follows....
Dim Lastrow as Long
Range("A1:A10").Value=10
rowcount=lastrow(sheet1).cells("A"&rows.count).End(x1up).Row
msgbox ("no of rows is" & rowcount)
Note: I can do row count with other syntax but i want to learn with above script...if u can explian detailly would be more appriciate...
Thank you....