im trying to sort using vba, i have the code to select the cell i want to start with.
i want to use xlDown and xlToRight to select my range.
heres my code, how can i make it work?
![]()
Please Login or Register to view this content.
im trying to sort using vba, i have the code to select the cell i want to start with.
i want to use xlDown and xlToRight to select my range.
heres my code, how can i make it work?
![]()
Please Login or Register to view this content.
Try
It's a good idea to set the value of Header to xlYes or xlNo in case the guess is wrong.![]()
Please Login or Register to view this content.
Try with less brackets
Excel will make a guess as to whether there is a header row in the range or not based upon the cell contents. Sometimes it gets it wrong hence the suggestion you should specify if there is a header row or not.![]()
Please Login or Register to view this content.
Last edited by mrice; 09-24-2013 at 03:46 PM.
The ActiveCell is on the ActiveSheet. If you want to use that in figuring out what to sort, you need to select the sheet first.
Entia non sunt multiplicanda sine necessitate
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks