LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 89
Default Can't use COUNT function to count.csv rows?

Dear All,

I populate a csv file using data from our data warehouse and import
it as .csv.

I wish to Activate that file and count the number of rows and record
this in another workbooks sheet.

E.g.

In the CSV file

Dim Work As Workbook
Dim Figures As Workbook

Set Work = Workbooks.Open("N:\Work.csv")
Set Figures = Workbooks.Open("N:\mmyy.xls")

Work.Activate
Range("A1").Select
Range(Selection, Selection.End(xlDown)).Select
myCount = Selection.Rows.Count
Figures.Activate
Range("A1").Select
Selection.End(xlDown).Select
ActiveCell.Offset(1, 0).Select
myCount.Paste

The xlDown is to skip part the previous months result.
Why isn't the count working, do I need to convert the numbers? Should
I say the data (.dtf file) as a different format from the i-Series
insteand of .csv?

Thanks
 
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
count count multiple rows Lise Excel Discussion (Misc queries) 5 December 18th 08 04:41 AM
Count of Worksheet rows and recording this count mikerobe Excel Programming 2 March 21st 07 02:17 AM
Count rows and insert number to count them. Mex Excel Discussion (Misc queries) 6 August 23rd 06 02:29 AM
Function to display a count of visible cells/rows... doesn't Peter Rooney Excel Programming 7 May 16th 06 10:27 AM
Function to Count Number of Consecutive Rows with a Specific Criteria? Templee1 Excel Worksheet Functions 2 July 10th 05 10:22 PM


All times are GMT +1. The time now is 04:41 PM.

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

About Us

"It's about Microsoft Excel"