#1   Report Post  
Posted to microsoft.public.excel.programming
CLR CLR is offline
external usenet poster
 
Posts: 594
Default Macro log

Hi All........
If someone would be so kind.........I would like to know if it's possible to
build a log to a RangeName on a helper Sheet, returning the Name of each
macro as it is run, the datetime, and the ComputerUserName who ran the
macro, appending to the bottom of the Range each time any macro in the file
is run. It would be acceptable to insert a small snippet of code into each
existing macro, if necessary.

TIA
Vaya con Dios,
Chuck, CABGx3






  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,588
Default Macro log

sub LogMessage(sMacro as string)
with this workbook.sheets("log").cells(rows.count,1).end(xlU p).offset(1,0)
.value=Date
.offset(0,1).value = Environ("username")
.offset(0,2).value = sMacro
end with
end sub

or something like that.

Tim


"CLR" wrote in message ...
Hi All........
If someone would be so kind.........I would like to know if it's possible to
build a log to a RangeName on a helper Sheet, returning the Name of each
macro as it is run, the datetime, and the ComputerUserName who ran the
macro, appending to the bottom of the Range each time any macro in the file
is run. It would be acceptable to insert a small snippet of code into each
existing macro, if necessary.

TIA
Vaya con Dios,
Chuck, CABGx3








  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,979
Default Macro log

Hi Chuck,
Jon Peltier's article may help you get started:

http://pubs.logicalexpressions.com/P...cle.asp?ID=622

Debra

CLR wrote:
Hi All........
If someone would be so kind.........I would like to know if it's possible to
build a log to a RangeName on a helper Sheet, returning the Name of each
macro as it is run, the datetime, and the ComputerUserName who ran the
macro, appending to the bottom of the Range each time any macro in the file
is run. It would be acceptable to insert a small snippet of code into each
existing macro, if necessary.

TIA
Vaya con Dios,
Chuck, CABGx3








--
Debra Dalgleish
Contextures
http://www.contextures.com/tiptech.html

  #4   Report Post  
Posted to microsoft.public.excel.programming
CLR CLR is offline
external usenet poster
 
Posts: 594
Default Macro log

Thanks Tim........that seems to point the direction

Vaya con Dios,
Chuck, CABGx3


"Tim Williams" <timjwilliams at gmail dot com wrote in message
...
sub LogMessage(sMacro as string)
with this

workbook.sheets("log").cells(rows.count,1).end(xlU p).offset(1,0)
.value=Date
.offset(0,1).value = Environ("username")
.offset(0,2).value = sMacro
end with
end sub

or something like that.

Tim


"CLR" wrote in message

...
Hi All........
If someone would be so kind.........I would like to know if it's

possible to
build a log to a RangeName on a helper Sheet, returning the Name of each
macro as it is run, the datetime, and the ComputerUserName who ran the
macro, appending to the bottom of the Range each time any macro in the

file
is run. It would be acceptable to insert a small snippet of code into

each
existing macro, if necessary.

TIA
Vaya con Dios,
Chuck, CABGx3










  #5   Report Post  
Posted to microsoft.public.excel.programming
CLR CLR is offline
external usenet poster
 
Posts: 594
Default Macro log

Thanks Debra, I'll check it out......

Vaya con Dios,
Chuck, CABGx3




"Debra Dalgleish" wrote in message
...
Hi Chuck,
Jon Peltier's article may help you get started:

http://pubs.logicalexpressions.com/P...cle.asp?ID=622

Debra

CLR wrote:
Hi All........
If someone would be so kind.........I would like to know if it's

possible to
build a log to a RangeName on a helper Sheet, returning the Name of each
macro as it is run, the datetime, and the ComputerUserName who ran the
macro, appending to the bottom of the Range each time any macro in the

file
is run. It would be acceptable to insert a small snippet of code into

each
existing macro, if necessary.

TIA
Vaya con Dios,
Chuck, CABGx3








--
Debra Dalgleish
Contextures
http://www.contextures.com/tiptech.html



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
Macro Help Needed - Excel 2007 - Print Macro with Auto Sort Gavin Excel Worksheet Functions 0 May 17th 07 01:20 PM
Need syntax for RUNning a Word macro with an argument, called from an Excel macro Steve[_84_] Excel Programming 3 July 6th 06 07:42 PM
how to count/sum by function/macro to get the number of record to do copy/paste in macro tango Excel Programming 1 October 15th 04 01:16 PM
macro to delete entire rows when column A is blank ...a quick macro vikram Excel Programming 4 May 3rd 04 08:45 PM
Start Macro / Stop Macro / Restart Macro Pete[_13_] Excel Programming 2 November 21st 03 05:04 PM


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