SAMCRO2014
Board Regular
- Joined
- Sep 3, 2015
- Messages
- 160
Hi,
I cannot determine why I am getting the error "Object required" for the following coding for LastRowText:
Set variables
Dim PPDR As Worksheet
Set PPDR = ThisWorkbook.Sheets("PPDR")
Dim SPS As Worksheet
Set SPS = ThisWorkbook.Sheets("SPS+")
Dim Data As Worksheet
Set Data = ThisWorkbook.Sheets("Data")
Dim LastRowText As Long
Set LastRowText = PPDR.Cells(Rows.Count, "P").End(xlUp).Row
I am trying to determine the last row of cells that contain data in column P for worksheet PPDR.
HELP!!
I cannot determine why I am getting the error "Object required" for the following coding for LastRowText:
Set variables
Dim PPDR As Worksheet
Set PPDR = ThisWorkbook.Sheets("PPDR")
Dim SPS As Worksheet
Set SPS = ThisWorkbook.Sheets("SPS+")
Dim Data As Worksheet
Set Data = ThisWorkbook.Sheets("Data")
Dim LastRowText As Long
Set LastRowText = PPDR.Cells(Rows.Count, "P").End(xlUp).Row
I am trying to determine the last row of cells that contain data in column P for worksheet PPDR.
HELP!!