ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   oversize spreadsheet should spill over into multiple pages (https://www.excelbanter.com/excel-discussion-misc-queries/103263-oversize-spreadsheet-should-spill-over-into-multiple-pages.html)

Oversize exported files to worksheet

oversize spreadsheet should spill over into multiple pages
 

Currently in excel 2000, when we try to export a file (from Quickbooks) that
excedes tht limits for a single worksheet, no option exists to let the file
overflow into additional pages in a workbook. This would be a great
improvement.

Lynn Comstock

----------------
This post is a suggestion for Microsoft, and Microsoft responds to the
suggestions with the most votes. To vote for this suggestion, click the "I
Agree" button in the message pane. If you do not see the button, follow this
link to open the suggestion in the Microsoft Web-based Newsreader and then
click "I Agree" in the message pane.

http://www.microsoft.com/office/comm...lic.excel.misc

Niek Otten

oversize spreadsheet should spill over into multiple pages
 
..\My Documents\XLSheets\NewsGroupSheets\Functions and Subs text\Importing a large file into Excel.doc


--
Kind regards,

Niek Otten
Microsoft MVP - Excel

"Oversize exported files to worksheet" <Oversize exported files to wrote in message
...
|
| Currently in excel 2000, when we try to export a file (from Quickbooks) that
| excedes tht limits for a single worksheet, no option exists to let the file
| overflow into additional pages in a workbook. This would be a great
| improvement.
|
| Lynn Comstock
|
| ----------------
| This post is a suggestion for Microsoft, and Microsoft responds to the
| suggestions with the most votes. To vote for this suggestion, click the "I
| Agree" button in the message pane. If you do not see the button, follow this
| link to open the suggestion in the Microsoft Web-based Newsreader and then
| click "I Agree" in the message pane.
|
|
http://www.microsoft.com/office/comm...lic.excel.misc



Niek Otten

oversize spreadsheet should spill over into multiple pages
 
Sorry about that

Should be:

Importing a large file into Excel. File MAY have more than 65,000 records
and will automatically start a new sheet.


Sub LargeFileImport()
'Bernie Deitrick's code for opening vary large text files in Excel
'Dimension Variables
Dim ResultStr As String
Dim FileName As String
Dim FileNum As Integer
Dim Counter As Double
'Ask User for File's Name
FileName = Application.GetOpenFilename
'Check for no entry
If FileName = "" Then End
'Get Next Available File Handle Number
FileNum = FreeFile()
'Open Text File For Input
Open FileName For Input As #FileNum
'Turn Screen Updating Off
Application.ScreenUpdating = False
'Create A New WorkBook With One Worksheet In It
Workbooks.Add Template:=xlWorksheet
'Set The Counter to 1
Counter = 1
'Loop Until the End Of File Is Reached
Do While Seek(FileNum) <= LOF(FileNum)
'Display Importing Row Number On Status Bar
Application.StatusBar = "Importing Row " & Counter & " of text file " _
& FileName
'Store One Line Of Text From File To Variable
Line Input #FileNum, ResultStr
'Store Variable Data Into Active Cell
If Left(ResultStr, 1) = "=" Then
ActiveCell.Value = "'" & ResultStr
Else
ActiveCell.Value = ResultStr
End If
If ActiveCell.Row = 65536 Then
'If On The Last Row Then Add A New Sheet
ActiveWorkbook.Sheets.Add
Else
'If Not The Last Row Then Go One Cell Down
ActiveCell.Offset(1, 0).Select
End If
'Increment the Counter By 1
Counter = Counter + 1
'Start Again At Top Of 'Do While' Statement
Loop
'Close The Open Text File
Close
'Remove Message From Status Bar
Application.StatusBar = False
End Sub


--
Kind regards,

Niek Otten
Microsoft MVP - Excel


"Niek Otten" wrote in message ...
| ..\My Documents\XLSheets\NewsGroupSheets\Functions and Subs text\Importing a large file into Excel.doc
|
|
| --
| Kind regards,
|
| Niek Otten
| Microsoft MVP - Excel
|
| "Oversize exported files to worksheet" <Oversize exported files to wrote in message
| ...
||
|| Currently in excel 2000, when we try to export a file (from Quickbooks) that
|| excedes tht limits for a single worksheet, no option exists to let the file
|| overflow into additional pages in a workbook. This would be a great
|| improvement.
||
|| Lynn Comstock
||
|| ----------------
|| This post is a suggestion for Microsoft, and Microsoft responds to the
|| suggestions with the most votes. To vote for this suggestion, click the "I
|| Agree" button in the message pane. If you do not see the button, follow this
|| link to open the suggestion in the Microsoft Web-based Newsreader and then
|| click "I Agree" in the message pane.
||
||
|
http://www.microsoft.com/office/comm...lic.excel.misc
|
|



Oversize exported files to worksheet

oversize spreadsheet should spill over into multiple pages
 
I am sure this would work if I understood more. Unfortunately I am not
importing into excel but starting within Quickbooks and Exporting to ecel
which doesn/t seem ot offer the flexibiltiy that I need to get this done.

In addition this is such a simple and natural concept that instead of a cold
"Sorry, your file is too large" Microsoft could offer, " Would you like the
file to automatically overflow into additional worksheets in this workbook?"
and finish the job.

Lynn

"Niek Otten" wrote:

Sorry about that

Should be:

Importing a large file into Excel. File MAY have more than 65,000 records
and will automatically start a new sheet.


Sub LargeFileImport()
'Bernie Deitrick's code for opening vary large text files in Excel
'Dimension Variables
Dim ResultStr As String
Dim FileName As String
Dim FileNum As Integer
Dim Counter As Double
'Ask User for File's Name
FileName = Application.GetOpenFilename
'Check for no entry
If FileName = "" Then End
'Get Next Available File Handle Number
FileNum = FreeFile()
'Open Text File For Input
Open FileName For Input As #FileNum
'Turn Screen Updating Off
Application.ScreenUpdating = False
'Create A New WorkBook With One Worksheet In It
Workbooks.Add Template:=xlWorksheet
'Set The Counter to 1
Counter = 1
'Loop Until the End Of File Is Reached
Do While Seek(FileNum) <= LOF(FileNum)
'Display Importing Row Number On Status Bar
Application.StatusBar = "Importing Row " & Counter & " of text file " _
& FileName
'Store One Line Of Text From File To Variable
Line Input #FileNum, ResultStr
'Store Variable Data Into Active Cell
If Left(ResultStr, 1) = "=" Then
ActiveCell.Value = "'" & ResultStr
Else
ActiveCell.Value = ResultStr
End If
If ActiveCell.Row = 65536 Then
'If On The Last Row Then Add A New Sheet
ActiveWorkbook.Sheets.Add
Else
'If Not The Last Row Then Go One Cell Down
ActiveCell.Offset(1, 0).Select
End If
'Increment the Counter By 1
Counter = Counter + 1
'Start Again At Top Of 'Do While' Statement
Loop
'Close The Open Text File
Close
'Remove Message From Status Bar
Application.StatusBar = False
End Sub


--
Kind regards,

Niek Otten
Microsoft MVP - Excel


"Niek Otten" wrote in message ...
| ..\My Documents\XLSheets\NewsGroupSheets\Functions and Subs text\Importing a large file into Excel.doc
|
|
| --
| Kind regards,
|
| Niek Otten
| Microsoft MVP - Excel
|
| "Oversize exported files to worksheet" <Oversize exported files to wrote in message
| ...
||
|| Currently in excel 2000, when we try to export a file (from Quickbooks) that
|| excedes tht limits for a single worksheet, no option exists to let the file
|| overflow into additional pages in a workbook. This would be a great
|| improvement.
||
|| Lynn Comstock
||
|| ----------------
|| This post is a suggestion for Microsoft, and Microsoft responds to the
|| suggestions with the most votes. To vote for this suggestion, click the "I
|| Agree" button in the message pane. If you do not see the button, follow this
|| link to open the suggestion in the Microsoft Web-based Newsreader and then
|| click "I Agree" in the message pane.
||
||
|
http://www.microsoft.com/office/comm...lic.excel.misc
|
|




Gord Dibben

oversize spreadsheet should spill over into multiple pages
 
Export to Wordpad or similar as *.txt file then open that in Excel using the
code Niek provided.

OR......wait for Excel 2007 which has one million rows and 16384 columns.


Gord Dibben MS Excel MVP

On Fri, 4 Aug 2006 14:46:02 -0700, Oversize exported files to worksheet
osoft.com wrote:

I am sure this would work if I understood more. Unfortunately I am not
importing into excel but starting within Quickbooks and Exporting to ecel
which doesn/t seem ot offer the flexibiltiy that I need to get this done.

In addition this is such a simple and natural concept that instead of a cold
"Sorry, your file is too large" Microsoft could offer, " Would you like the
file to automatically overflow into additional worksheets in this workbook?"
and finish the job.

Lynn

"Niek Otten" wrote:

Sorry about that

Should be:

Importing a large file into Excel. File MAY have more than 65,000 records
and will automatically start a new sheet.


Sub LargeFileImport()
'Bernie Deitrick's code for opening vary large text files in Excel
'Dimension Variables
Dim ResultStr As String
Dim FileName As String
Dim FileNum As Integer
Dim Counter As Double
'Ask User for File's Name
FileName = Application.GetOpenFilename
'Check for no entry
If FileName = "" Then End
'Get Next Available File Handle Number
FileNum = FreeFile()
'Open Text File For Input
Open FileName For Input As #FileNum
'Turn Screen Updating Off
Application.ScreenUpdating = False
'Create A New WorkBook With One Worksheet In It
Workbooks.Add Template:=xlWorksheet
'Set The Counter to 1
Counter = 1
'Loop Until the End Of File Is Reached
Do While Seek(FileNum) <= LOF(FileNum)
'Display Importing Row Number On Status Bar
Application.StatusBar = "Importing Row " & Counter & " of text file " _
& FileName
'Store One Line Of Text From File To Variable
Line Input #FileNum, ResultStr
'Store Variable Data Into Active Cell
If Left(ResultStr, 1) = "=" Then
ActiveCell.Value = "'" & ResultStr
Else
ActiveCell.Value = ResultStr
End If
If ActiveCell.Row = 65536 Then
'If On The Last Row Then Add A New Sheet
ActiveWorkbook.Sheets.Add
Else
'If Not The Last Row Then Go One Cell Down
ActiveCell.Offset(1, 0).Select
End If
'Increment the Counter By 1
Counter = Counter + 1
'Start Again At Top Of 'Do While' Statement
Loop
'Close The Open Text File
Close
'Remove Message From Status Bar
Application.StatusBar = False
End Sub


--
Kind regards,

Niek Otten
Microsoft MVP - Excel


"Niek Otten" wrote in message ...
| ..\My Documents\XLSheets\NewsGroupSheets\Functions and Subs text\Importing a large file into Excel.doc
|
|
| --
| Kind regards,
|
| Niek Otten
| Microsoft MVP - Excel
|
| "Oversize exported files to worksheet" <Oversize exported files to wrote in message
| ...
||
|| Currently in excel 2000, when we try to export a file (from Quickbooks) that
|| excedes tht limits for a single worksheet, no option exists to let the file
|| overflow into additional pages in a workbook. This would be a great
|| improvement.
||
|| Lynn Comstock
||
|| ----------------
|| This post is a suggestion for Microsoft, and Microsoft responds to the
|| suggestions with the most votes. To vote for this suggestion, click the "I
|| Agree" button in the message pane. If you do not see the button, follow this
|| link to open the suggestion in the Microsoft Web-based Newsreader and then
|| click "I Agree" in the message pane.
||
||
|
http://www.microsoft.com/office/comm...lic.excel.misc
|
|






All times are GMT +1. The time now is 12:43 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com