This is strange.... The code below was originally fired from a form control button on a tab called "Instructions and Initialization" and the code was embedded in a module in the excel sheet as Sub PullAccessData(). When I ran the code the first time after opening the spreadsheet it would run just fine. If I saved the results and closed the spreadsheet and then re-opened and repeated, no issues. When I pressed the form control button a second time (i.e. did not close and reopen the spreadsheet) the code would fail at location #1 in the code. This was annoying and I thought something within the code was staying active which was causing the sub to fail the second time around.
I decided I would try to disable the button at the end of the subroutine so the user could not fire a second time. I would first put another button on the same sheet which would re-enable the button and then stop all VBA macros. I figured this would clear whatever was staying active causing the problem (allegedly..)
I was having issues enabling and disabling the buttons so I changed the button to an ActiveX button and moved the code below to be attached that activeX button. When I do that it fails every time at location #2. I have tried starting and stopping the code at various locations to fine tune what may be causing the issues, but the only thing I have been able to determine is it is failing on range calls using the format of range.(Cells(j, 1),Cells(jEnd,2).Select
I am dumbfounded.
Bookmarks