gheyman
Well-known Member
- Joined
- Nov 14, 2005
- Messages
- 2,347
- Office Version
- 365
- Platform
- Windows
Why is this not clearing the rows and why is it hiding column C?
I am running it from a button on a different sheet
I am running it from a button on a different sheet
Code:
Private Sub CommandButton2_Click()
On Error Resume Next
Sheets("ItemTemplate").Activate
Rows("2:200").Clear
Range("A1").Value = "UserId"
Range("B1").Value = "ParentItemID"
Range("C1").Value = "ItemID"
Range("d1").Value = "ItemDescription"
Range("A2").Select
Columns("E:E").Select
Range(Selection, Selection.End(xlToRight)).Select
Selection.EntireColumn.Hidden = True
Range("D14").Select
End Sub