S
SOS
Hi all,
I got the following code snippet from a previous post and would like
little help if possible:
*********************************************
' Find the last real row
Lastrow& = .Cells.Find(What:="*", SearchDirection:=xlPrevious
SearchOrder:=xlByRows).Row
' Find the last real column
LastCol% = .Cells.Find(What:="*", SearchDirection:=xlPrevious
SearchOrder:=xlByColumns).Column
********************************************
If my data (for example) is in Cells A1 through E3 the code above tell
me that Lastow& is "3" and that LastCol% is "5".
What I would like is for the code to tell me that LastCol% ="E" so tha
I can then select the whole range of data ("A1:E3").
Can anybody give me some pointers please.
TIA
Seamu
I got the following code snippet from a previous post and would like
little help if possible:
*********************************************
' Find the last real row
Lastrow& = .Cells.Find(What:="*", SearchDirection:=xlPrevious
SearchOrder:=xlByRows).Row
' Find the last real column
LastCol% = .Cells.Find(What:="*", SearchDirection:=xlPrevious
SearchOrder:=xlByColumns).Column
********************************************
If my data (for example) is in Cells A1 through E3 the code above tell
me that Lastow& is "3" and that LastCol% is "5".
What I would like is for the code to tell me that LastCol% ="E" so tha
I can then select the whole range of data ("A1:E3").
Can anybody give me some pointers please.
TIA
Seamu