Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
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
Posted to microsoft.public.excel.programming
|
|||
|
|||
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
Posted to microsoft.public.excel.programming
|
|||
|
|||
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
Posted to microsoft.public.excel.programming
|
|||
|
|||
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
Posted to microsoft.public.excel.programming
|
|||
|
|||
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 |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Macro Help Needed - Excel 2007 - Print Macro with Auto Sort | Excel Worksheet Functions | |||
Need syntax for RUNning a Word macro with an argument, called from an Excel macro | Excel Programming | |||
how to count/sum by function/macro to get the number of record to do copy/paste in macro | Excel Programming | |||
macro to delete entire rows when column A is blank ...a quick macro | Excel Programming | |||
Start Macro / Stop Macro / Restart Macro | Excel Programming |