Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 12-10-2015, 12:58 PM
zhead zhead is offline How to Auomatically populate "Sheet2" when "Sheet1" is full Windows 7 64bit How to Auomatically populate "Sheet2" when "Sheet1" is full Office 2010 64bit
Advanced Beginner
How to Auomatically populate "Sheet2" when "Sheet1" is full
 
Join Date: Mar 2015
Location: Texas
Posts: 32
zhead is on a distinguished road
Question 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?
Reply With Quote
  #2  
Old 12-11-2015, 12:02 AM
macropod's Avatar
macropod macropod is offline How to Auomatically populate "Sheet2" when "Sheet1" is full Windows 7 64bit How to Auomatically populate "Sheet2" when "Sheet1" is full Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,962
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

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]
Reply With Quote
  #3  
Old 12-11-2015, 12:55 AM
Pecoflyer's Avatar
Pecoflyer Pecoflyer is offline How to Auomatically populate "Sheet2" when "Sheet1" is full Windows 7 64bit How to Auomatically populate "Sheet2" when "Sheet1" is full Office 2010 64bit
Expert
 
Join Date: Nov 2011
Location: Brussels Belgium
Posts: 2,771
Pecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant future
Default

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
Reply With Quote
  #4  
Old 12-11-2015, 06:12 AM
zhead zhead is offline How to Auomatically populate "Sheet2" when "Sheet1" is full Windows 7 64bit How to Auomatically populate "Sheet2" when "Sheet1" is full Office 2010 64bit
Advanced Beginner
How to Auomatically populate "Sheet2" when "Sheet1" is full
 
Join Date: Mar 2015
Location: Texas
Posts: 32
zhead is on a distinguished road
Default

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.
Reply With Quote
  #5  
Old 12-11-2015, 06:13 AM
zhead zhead is offline How to Auomatically populate "Sheet2" when "Sheet1" is full Windows 7 64bit How to Auomatically populate "Sheet2" when "Sheet1" is full Office 2010 64bit
Advanced Beginner
How to Auomatically populate "Sheet2" when "Sheet1" is full
 
Join Date: Mar 2015
Location: Texas
Posts: 32
zhead is on a distinguished road
Default

Pecoflyer
Thanks for the advice. I will check with the IT department to see if they can download this for me.
Reply With Quote
Reply



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 Auomatically populate "Sheet2" when "Sheet1" is full 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

Other Forums: Access Forums

All times are GMT -7. The time now is 12:22 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft