Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 441
Default Log users opening the VBE?

I am using Windows XP with Office 2003.

Does anyone know if it is possible to capture the user name of any user who
opens the visual basic editor (VBE) in Excel? I know how to get the user and
computer name:

ReturnNetworkName = Environ("UserName")
ReturnComputerName = Environ("ComputerName")

But is it possible to know when the VBE is opened and then log this info? If
so, could you please post example code.

Thanks much in advance.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 983
Default Log users opening the VBE?

I kinda think you are hooped on this one... Partly because if your code
crashes Excel will try to open the VBE (debug mode) without the user even
requesting it... My only suggestion would be to lock down the access to the
code with a password. Then you can control who has access. I suggest time
stamping any changes that are made in a comment block. "Quartz changed this
line of code on this date to resolve this issue"... or something like that.
It is a good commenting practice to get into.

HTH

"quartz" wrote:

I am using Windows XP with Office 2003.

Does anyone know if it is possible to capture the user name of any user who
opens the visual basic editor (VBE) in Excel? I know how to get the user and
computer name:

ReturnNetworkName = Environ("UserName")
ReturnComputerName = Environ("ComputerName")

But is it possible to know when the VBE is opened and then log this info? If
so, could you please post example code.

Thanks much in advance.

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
Problem with multiple users opening a workbook Dazza13 Excel Discussion (Misc queries) 3 January 15th 09 02:13 PM
Preventing other users from opening hidden worksheets pjk@boro Excel Discussion (Misc queries) 3 May 31st 08 12:25 AM
Limiting number of users opening Excel Workbook at one time. RickatMDG Excel Discussion (Misc queries) 1 December 20th 07 06:53 PM
Long delay opening a workbook through our Intranet for some users Jacques Trépanier Links and Linking in Excel 0 April 20th 07 08:58 PM
Multiple users opening same Excel spreadsheet. Ehren Excel Discussion (Misc queries) 4 May 11th 06 03:07 PM


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

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"