Pat_The_Bat
Board Regular
- Joined
- Jul 12, 2018
- Messages
- 83
I'm trying to insert a line of code at the end of my macro that will sort the list alphabetically. I keep getting this compile error and it points to the word Key1 in my line of code saying that it expects the end of a statement
also, should the Range right after Key1 have a Dot before it. I've written both ways thinking that might be giving me the error, but it's not what is causing it.
Thanks in advance
Code:
With Sheets("Doc Checklist").Range("C2:C500").Sort Key1:=Range("C2") Order1:=xlAscending, Header:=xlNo
also, should the Range right after Key1 have a Dot before it. I've written both ways thinking that might be giving me the error, but it's not what is causing it.
Thanks in advance