hi,
while I`m running below code I`m getting error like:
run-time error 1004
select method of Range class failed
do you know why?
while I`m running below code I`m getting error like:
run-time error 1004
select method of Range class failed
Code:
Application.ScreenUpdating = False
Application.DisplayAlerts = False
Dim wsC As Worksheet
Dim wbC As Workbook
Set wbC = ActiveWorkbook
Set wsC = wbC.Worksheets("ABC")
wsC.Columns("AG:AH").Select
Selection.Copy
wsC.Range("BA1").Select
wsC.Paste
Application.CutCopyMode = False
wsC.Range("A1").Select
Application.ScreenUpdating = True
Application.DisplayAlerts = True
do you know why?