VBA Code:
Set rngS = Selection
Dim LASTRowHK As Long
LASTRowHK = ActiveSheet.Cells.Find("*", SearchOrder:=xlByRows, SearchDirection:=xlPrevious).Row
is there a way to set the above as applying to all new subs created within the VBAproject
so that if i start a new sub and enter
VBA Code:
range(rngS, rngS(LASTRowHK)).Select
it knows what do without including the top 3 lines?