![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Join Date: May 2002
Posts: 2
|
I have a workbook that detects specific users by their user name (in options/general of '97) and makes the book either read-only or not, depending on the name.
Problem is that the user name is visible as "last saved by" in Properties, and I want to either hide or overwrite this so that other users cant see or use these names. Is this possible? Thanks. Jefff |
|
|
|
|
|
#2 |
|
MrExcel MVP
Admin Join Date: Feb 2002
Location: Minneapolis, Mn, USA
Posts: 9,639
|
Hello Jeff, the following series of Workbook event procedures uses a public variable to store the Username, change the username before saving the file and restoring the original username before the workbook is closed.
The code should be placed in the 'ThisWorkbook' module. I would guess you already have workbook events, if so, layer the code in. Hope this helps. _________________ Cheers, NateO [ This Message was edited by: NateO on 2002-05-22 09:34 ] |
|
|
|
|
|
#3 |
|
MrExcel MVP
Join Date: Feb 2002
Location: Bogota, Colombia
Posts: 11,758
|
Try this:
ActiveWorkbook.BuiltinDocumentProperties(7).Value = "Other guy" |
|
|
|
|
|
#4 |
|
Join Date: May 2002
Posts: 2
|
Thanks very much for the solutions. Excel-lent!
JeFFF |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|