Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 19
Default How to detect and view more than 65,536 rows when opening a DBF

Excel 2002 SP3
Windows XP Pro

I'd like to be able to open a DBF file where if the DBF has more than 65,535
records that the other records would open on a new sheet in the DBF file. I
know a DBF can have only one worksheet, but this would just be a temporary
thing for viewing only.

Can this be done? Any help or suggestions appreciated.

--
=================================================
The creative act is not the province of remote oracles or rarefied geniuses
but a transparent process that is open to everyone.
-Greg Kot in Wilco Learning How To Die-


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 18
Default How to detect and view more than 65,536 rows when opening a DBF

It can be done. One method using VBA would be to:

Import the data into a ADODB.recordset
Use the Count property of the recordset to determine the number of records.
Put the first 65,000 or so records into the first worksheet by looping
through the recordset.
Either create a new worksheet or open an existing worksheet and continue
putting records into it.

Ron




"42N83W" wrote in message
...
Excel 2002 SP3
Windows XP Pro

I'd like to be able to open a DBF file where if the DBF has more than
65,535 records that the other records would open on a new sheet in the DBF
file. I know a DBF can have only one worksheet, but this would just be a
temporary thing for viewing only.

Can this be done? Any help or suggestions appreciated.

--
=================================================
The creative act is not the province of remote oracles or rarefied
geniuses
but a transparent process that is open to everyone.
-Greg Kot in Wilco Learning How To Die-



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
View upon opening shakey[_2_] New Users to Excel 3 October 16th 08 07:43 PM
Use Advanced Filter to Detect non blank rows Connie Excel Discussion (Misc queries) 0 October 19th 06 09:40 PM
My view has changed, I want same view as when opening excel migalfarucci Excel Worksheet Functions 1 October 27th 05 04:08 PM
how to detect added or deleted rows in compare helpwithXL Excel Programming 1 April 29th 05 01:48 PM
Detect if a command bar is enabled in View-Toolbars Dave Excel Programming 2 December 1st 04 10:25 PM


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

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"