If this is your first visit, be sure to check out the FAQ by clicking the link above.
You may have to register before you can post: click the register link above to proceed.
To start viewing messages, select the forum that you want to visit from the selection below.
This is CRAZY i have this sub in my sheet(1), i copied to sheet 2 and am using it from a btn Click event. i get the errror :
Select method of range class failed
runtime error 1004 on the 2nd row "Range("A3").Select" is this because the sub is in sheet 1 and i want it to work with another sheet?
How can i call subs from this workbook, a modual from diff sheets? I konw it can be done just dont know how to qualify the sub
Sub SetLastRow()
Sheets("DataSet").Activate
Range("A3").Select
Selection.End(xlDown).Select
LastRow = ActiveCell.Row
End Sub
Yes, if you want to run code that relates to, or selects, different sheet than it should be in a Moduel, but not a CLASS Mode as you seem to suggest (that is a different object!).