I have a macro that extracts data from SQL Server and pastes it into a worksheet in Excel. The problem is that once the data are pasted into the Excel worksheet, Excel's "find" function no longer works (i.e., I press CTRL+F, search for text that I know appears in the data, and the search returns nothing). Does importing data from SQL Server do something to the data to change how it can be accessed/searched within Excel?
Here's the code:
The problem occurs when I try to run the other macro (named "Customers"). Within that macro, there's a command to search through the spreadsheet for a column title and then record that column number as a variable. When that code runs, Excel returns a "Run-Time 91" error: "Object variable or With block variable not set."
When I exit the macro and attempt to find the text myself (outside the macro), the CTRL+F search box returns no results, even though I *see* the text on screen that I'm searching for.
Any help would be appreciated.
Bookmarks