tonywatsonhelp
Well-known Member
- Joined
- Feb 24, 2014
- Messages
- 3,194
- Office Version
- 365
- 2019
- 2016
- Platform
- Windows
Hi Everyone,
So totally confused please help if you can,
I have this bit of code i offten use to filter copy paste,
not had a problem before but for some reason when only row 2 has data in it it selects the entire sheet?
anyone know why?
i've show the code below
please any help would be great
So totally confused please help if you can,
I have this bit of code i offten use to filter copy paste,
not had a problem before but for some reason when only row 2 has data in it it selects the entire sheet?
anyone know why?
i've show the code below
please any help would be great
VBA Code:
Sub test4()
LrTarg = ODraw.Cells(Rows.Count, "M").End(xlUp).Row
If LrTarg > 1 Then
ODraw.Range("M2:M" & LrTarg).SpecialCells(xlCellTypeVisible).Select
End If