Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default using properties in text formulas

I am looking for a way to use the users name in a formula, using the
name in the Excel User Name property.

IE: I want to set up a macro that places
=Updated on " & text(now (),"MMM DD, YYYY") & " by "& {user name goes
here}
into the cell which I will then convert to a value.

I intend to do a quick check of the user name first so that if one
person does the update, it goes into one cell and anyone else's goes
into another cell.

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 107
Default using properties in text formulas

Put this function in a module:

Function UNAME()
UNAME = Application.UserName
End Function

In a cell put:
="Updated on "&TEXT(NOW(),"MMM DD, YYYY")&" by "&UNAME()

... and you will get something like:
Updated on Aug 29, 2006 by Andy

--
Andy Wiggins FCCA
www.BygSoftware.com
Excel, Access and VBA Consultancy
-

wrote in message
oups.com...
I am looking for a way to use the users name in a formula, using the
name in the Excel User Name property.

IE: I want to set up a macro that places
=Updated on " & text(now (),"MMM DD, YYYY") & " by "& {user name goes
here}
into the cell which I will then convert to a value.

I intend to do a quick check of the user name first so that if one
person does the update, it goes into one cell and anyone else's goes
into another cell.



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
HOW DO I CORRECT A CONDITION IN WHICH ALL FORMULAS ACT LIKE TEXT? CHERYLZ Excel Worksheet Functions 1 June 22nd 05 12:58 AM
How do I convert cells containing formulas to text (value returned Kim Excel Worksheet Functions 4 March 28th 05 09:17 PM
I want Excel to allow cells with formulas and unrelated text blueboy Excel Discussion (Misc queries) 9 March 4th 05 12:22 AM
How do you average text formulas?? bladelock Excel Discussion (Misc queries) 2 March 2nd 05 07:53 PM
Read Text File into Excel Using VBA Willie T Excel Discussion (Misc queries) 13 January 8th 05 12:37 AM


All times are GMT +1. The time now is 03:34 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"