Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9
Default Write log file

Is it possable to write some log information while running code in my excel
project? I would like to write some basic information incase I have a
problem or sut to write how many times a function is called?

TIA

Josh


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 414
Default Write log file

Hi Josh

If you are just wanting to keep track of how many times a function is
called it would probably be easier to print to the immediate window
(Ctrl G to view it in the VBE) than to create a log file.

Insert the appropriate line in your function:
Debug.Print "Myfunction ran" 'or whatever


Hope this helps
Rowan

Josh wrote:
Is it possable to write some log information while running code in my excel
project? I would like to write some basic information incase I have a
problem or sut to write how many times a function is called?

TIA

Josh


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Write log file

If you actually want to write a text/log file:
http://support.microsoft.com/default...62&Product=xlw
Working with Sequential Access Files

http://www.applecore99.com/gen/gen029.asp
File I/O Using VBA
Applecore pages on Microsoft Access

http://support.microsoft.com/default...67&Product=vb6
SAMPLE: RECEDIT.VBP Demonstrates File I/O in Visual Basic

--
Regards,
Tom Ogilvy


"Josh" wrote in message
...
Is it possable to write some log information while running code in my

excel
project? I would like to write some basic information incase I have a
problem or sut to write how many times a function is called?

TIA

Josh




  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 575
Default Write log file

Josh,

I just happened to have something like that from an old VB project, so I've
just put it up on my site for general consumption. Let me know if it works
for you.

http://www.enhanceddatasystems.com/E...LogHandler.htm

Robin Hammond
www.enhanceddatasystems.com

--
Robin Hammond
www.enhanceddatasystems.com
"Josh" wrote in message
...
Is it possable to write some log information while running code in my
excel project? I would like to write some basic information incase I have
a problem or sut to write how many times a function is called?

TIA

Josh



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
Open CSV file, format data and write output to a text file. BristolBloos Excel Programming 1 October 18th 05 03:50 PM
How to write to a template txt file pouk Excel Programming 1 July 7th 05 02:20 PM
How can I Write this to a CSV File Please Paul Black[_2_] Excel Programming 4 June 25th 05 12:43 PM
Write Text File Nigel Excel Programming 9 March 31st 05 05:44 PM
write to external file mgasparel[_3_] Excel Programming 2 February 21st 05 05:02 PM


All times are GMT +1. The time now is 05:48 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"