Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Contents of a file

look at the

if fileLen("c:\myfolder\mycsv.csv") = 0 then
msgbox "File is empty"
End if

--
Regards,
Tom Ogilvy

"Joe" wrote in message
...
Hello,

I am writing a vba macro and my input is an excel file
saved in .csv (command delimited). How could I write a
code in vba to check the contents of "myfile.csv" is blank
or no data at all.

Need your help please.

Thanks
Joe



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
2007 Macro to Open File, Delete Contents, Save New File Flintstone[_2_] Excel Discussion (Misc queries) 2 February 1st 10 11:25 PM
Table of Contents for Excel File akafrog18 Excel Discussion (Misc queries) 4 February 4th 07 04:14 AM
How to set SAVE AS file name to equal A1 contents when rename file E Excel Discussion (Misc queries) 0 October 19th 05 08:36 PM
File name equal cell contents ynissel Excel Discussion (Misc queries) 0 May 25th 05 03:41 PM
Saving a file(new) using the multiple cell contents as a file name Dave Peterson[_3_] Excel Programming 1 August 1st 03 01:40 PM


All times are GMT +1. The time now is 01:41 AM.

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"