I keep getting this error that says "Run Time Error '1004' Select Method of Range Class Failed" and if I debug it, it points to ".Range(sortRange).Select"
Public Sub Sorts()
With Worksheets(sheetName)
.Range(sortRange).Select
Selection.Sort Key1:=Range(Key)...
Here's what I need to do. I need to be able to test for a border property in excel using VBA. I have the top, bottom and two borders on each cell and some cells had the diagonal up and the diagonal down borders. I need to test for the diagonal borders. Any ideas?
i've tried
If...
Ok, here's what I have. I have been working on VBA with Excel, and I have a bunch of listboxes with a bunch of checkboxes that get added to the listboxes at run time. I need to be able to possibly get to the Enabled property of the checkboxes, but if i try using "List1.list(i).Enabled =...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.