#1
|
|||
|
|||
How to Auomatically populate "Sheet2" when "Sheet1" is full
I am creating a connection to a SQL data source and it is returning too much information for sheet1. How can i have it populate sheet2? |
#2
|
||||
|
||||
Your SQL returns more than 1048576 rows? If so, see: https://support.microsoft.com/en-us/kb/120596. You should be able to adapt the code there. Remember to replace the code references to 65536 with 1048576. However, that also implies your SQL data are being output to a text file from which you can import it into Excel.
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
#3
|
||||
|
||||
Also, if it is of use, the Powerpivot free add-in from MS allows much more than 1 Mio rows
__________________
Did you know you can thank someone who helped you? Click on the tiny scale in the right upper hand corner of your helper's post |
#4
|
|||
|
|||
Macropod
Thanks for your reply. Yes it returns more than1048576 rows. I had seen this but wasn't sure it would work being i am importing directly into excel. |
#5
|
|||
|
|||
Pecoflyer
Thanks for the advice. I will check with the IT department to see if they can download this for me. |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Need help with conditional formatting & returning "Pass" / "Fail Results" in a Column N | mikey386 | Excel | 2 | 12-11-2014 01:14 PM |
remove repeated words with " macro " or " wild cards " in texts with parentheses and commas | jocke321 | Word VBA | 2 | 12-10-2014 11:27 AM |
How to edit the "Format" and the "show level" of an EXISTING table of content? | Jamal NUMAN | Word | 2 | 08-14-2011 10:46 AM |
How to choose a "List" for certain "Heading" from "Modify" tool? | Jamal NUMAN | Word | 2 | 07-03-2011 03:11 AM |
"Microsoft Excel Application" missing in the "Component Services" on win08 | sword.fish | Excel | 0 | 02-26-2010 02:09 PM |