ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   signature (https://www.excelbanter.com/excel-programming/390911-signature.html)

copteral

signature
 
I would like to have a user "sign" a worksheet. I have captured their UserId,
but want to insert their full name instead. I think the Select Case should
work, but can't get the correct code. Can anyone give me a hint?

Bob Phillips

signature
 
Select Case Environ("UserName")
Case "Bob": sFullname = "Bob Phillips"
Case "copteral": sFullname = "copteral"
'etc.
End Select

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)

"copteral" wrote in message
...
I would like to have a user "sign" a worksheet. I have captured their
UserId,
but want to insert their full name instead. I think the Select Case should
work, but can't get the correct code. Can anyone give me a hint?




copteral

signature
 
Wow, even easier than I exepected. Works great! Thanks Bob

"Bob Phillips" wrote:

Select Case Environ("UserName")
Case "Bob": sFullname = "Bob Phillips"
Case "copteral": sFullname = "copteral"
'etc.
End Select

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)

"copteral" wrote in message
...
I would like to have a user "sign" a worksheet. I have captured their
UserId,
but want to insert their full name instead. I think the Select Case should
work, but can't get the correct code. Can anyone give me a hint?






All times are GMT +1. The time now is 06:49 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com