Barrakooda
Board Regular
- Joined
- Feb 3, 2012
- Messages
- 75
Hi all
I am using the following VBA to select data on a sheet, does anyone know what to put after .Select to insert a table?
I have tried recording a macro, but seems to limit itself to the range selected while recording. The range will vary.
Sub PickedActualUsedRange()
Range("A1").Resize(Cells.Find(What:="*", SearchOrder:=xlRows, _
SearchDirection:=xlPrevious, LookIn:=xlValues).Row, _
Cells.Find(What:="*", SearchOrder:=xlByColumns, _
SearchDirection:=xlPrevious, LookIn:=xlValues).Column).Select
End Sub
Thanks in advance
I am using the following VBA to select data on a sheet, does anyone know what to put after .Select to insert a table?
I have tried recording a macro, but seems to limit itself to the range selected while recording. The range will vary.
Sub PickedActualUsedRange()
Range("A1").Resize(Cells.Find(What:="*", SearchOrder:=xlRows, _
SearchDirection:=xlPrevious, LookIn:=xlValues).Row, _
Cells.Find(What:="*", SearchOrder:=xlByColumns, _
SearchDirection:=xlPrevious, LookIn:=xlValues).Column).Select
End Sub
Thanks in advance