Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
Gum Gum is offline
external usenet poster
 
Posts: 30
Default Excel VB Editor output stack and/or intermediate window to file

I would like to output (dump) the information in the stack and/or
intermediate window of Excel VB Editor to a disk file. How can this be done?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6,582
Default Excel VB Editor output stack and/or intermediate window to file

Instead of using Debug.Print, I have a routine called DebugPrint which
outputs the date and time plus the Debug string to a text file. I don't know
about the stack.

- Jon
-------
Jon Peltier, Microsoft Excel MVP
Tutorials and Custom Solutions
Peltier Technical Services, Inc. - http://PeltierTech.com
_______


"Gum" wrote in message
...
I would like to output (dump) the information in the stack and/or
intermediate window of Excel VB Editor to a disk file. How can this be
done?



  #3   Report Post  
Posted to microsoft.public.excel.programming
Gum Gum is offline
external usenet poster
 
Posts: 30
Default Excel VB Editor output stack and/or intermediate window to fil

That would help. If I cannot get the stack, then I could get proxy data that
I can put in the same dump file.

"Jon Peltier" wrote:

Instead of using Debug.Print, I have a routine called DebugPrint which
outputs the date and time plus the Debug string to a text file. I don't know
about the stack.

- Jon
-------
Jon Peltier, Microsoft Excel MVP
Tutorials and Custom Solutions
Peltier Technical Services, Inc. - http://PeltierTech.com
_______


"Gum" wrote in message
...
I would like to output (dump) the information in the stack and/or
intermediate window of Excel VB Editor to a disk file. How can this be
done?




  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6,582
Default Excel VB Editor output stack and/or intermediate window to fil

Public Sub DebugPrint(sLogEntry As String)
' write debug information to a log file

Dim iFile As Integer
Dim sFileName As String

sFileName = ThisWorkbook.Path & "\debuglog" & Format$(Now, "YYMMDD") &
".txt"

iFile = FreeFile

Open sFileName For Append As iFile
Print #iFile, Now; " "; sLogEntry
Close iFile

End Sub


- Jon
-------
Jon Peltier, Microsoft Excel MVP
Tutorials and Custom Solutions
Peltier Technical Services, Inc. - http://PeltierTech.com
_______


"Gum" wrote in message
...
That would help. If I cannot get the stack, then I could get proxy data
that
I can put in the same dump file.

"Jon Peltier" wrote:

Instead of using Debug.Print, I have a routine called DebugPrint which
outputs the date and time plus the Debug string to a text file. I don't
know
about the stack.

- Jon
-------
Jon Peltier, Microsoft Excel MVP
Tutorials and Custom Solutions
Peltier Technical Services, Inc. - http://PeltierTech.com
_______


"Gum" wrote in message
...
I would like to output (dump) the information in the stack and/or
intermediate window of Excel VB Editor to a disk file. How can this be
done?






  #5   Report Post  
Posted to microsoft.public.excel.programming
Gum Gum is offline
external usenet poster
 
Posts: 30
Default Excel VB Editor output stack and/or intermediate window to fil

Excellent!

"Jon Peltier" wrote:

Public Sub DebugPrint(sLogEntry As String)
' write debug information to a log file

Dim iFile As Integer
Dim sFileName As String

sFileName = ThisWorkbook.Path & "\debuglog" & Format$(Now, "YYMMDD") &
".txt"

iFile = FreeFile

Open sFileName For Append As iFile
Print #iFile, Now; " "; sLogEntry
Close iFile

End Sub


- Jon
-------
Jon Peltier, Microsoft Excel MVP
Tutorials and Custom Solutions
Peltier Technical Services, Inc. - http://PeltierTech.com
_______


"Gum" wrote in message
...
That would help. If I cannot get the stack, then I could get proxy data
that
I can put in the same dump file.

"Jon Peltier" wrote:

Instead of using Debug.Print, I have a routine called DebugPrint which
outputs the date and time plus the Debug string to a text file. I don't
know
about the stack.

- Jon
-------
Jon Peltier, Microsoft Excel MVP
Tutorials and Custom Solutions
Peltier Technical Services, Inc. - http://PeltierTech.com
_______


"Gum" wrote in message
...
I would like to output (dump) the information in the stack and/or
intermediate window of Excel VB Editor to a disk file. How can this be
done?








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
How to control the Excel VBA Editor Main Window Caption stuartt Excel Programming 6 April 17th 08 09:35 AM
Scrolling in editor window of Excel VBA sactly Excel Programming 5 May 9th 06 01:44 AM
date returning time in vba intermediate window papa jonah Excel Programming 3 December 25th 05 02:28 AM
VBA output to text editor stuart Excel Programming 3 August 7th 05 11:31 PM
clear intermediate window automatically Steven Deng Excel Programming 13 November 1st 04 08:34 AM


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