dpaton05
Well-known Member
- Joined
- Aug 14, 2018
- Messages
- 2,375
- Office Version
- 365
- 2016
- Platform
- Windows
I try to run this code and all it says it application defined or object defined error and it highlights this row
However, I don't think it is a problem with this line of code as it used to work and now it has stopped, despite having done nothing to the particular line of code.
DocYearName and Combo are variables.
Please help me as I am totally stumped.
Thanks,
Dave
Code:
Workbooks(DocYearName).Worksheets(Combo).Range("A5").CurrentRegion.Select key1:=Range("A3"), order1:=xlAscending, header:=xlYes
DocYearName and Combo are variables.
Please help me as I am totally stumped.
Thanks,
Dave