LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7,247
Default How to create LOG file for commands executed in VB..?

Dayanand,

Change the "For Append" to "For Output" in the Open statement.
This will delete the contents of the file when it is opened.


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com



"Dayanand" wrote in message
...
Hi Kevin,
Thanx for u r reply. But can u please guide me to create new

text file every time i run my application and log the data. Which
ever u have sent code will append the data to the existing log
file. Is it possible to remove the old content and append new
content or is it possible to create new text file..?.

Regards
Dayanand



 
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
Macro get executed twice Anand Nichkaode Excel Discussion (Misc queries) 3 September 24th 08 01:25 PM
Lost Commands on Toolbar ie. File, View, etc. Miles Excel Discussion (Misc queries) 2 February 14th 08 04:53 PM
file commands mark Excel Worksheet Functions 1 October 8th 05 02:47 PM
Deleting custom Commands from File Menu are nor saved next time w. EXCEL CUstomization Excel Worksheet Functions 3 December 7th 04 01:46 AM
Parameter Query executed from a Macro David Excel Programming 4 April 19th 04 11:37 PM


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

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"