Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 989
Default Worksheet Function not refreshing

I have a excel file which is used by several people and I wanted it to show
who was using it at the moment so I wrote

Public Function CurrUserName(Workbook) As String
CurrUserName = Application.UserName
End Function

This does work but is only updated when someone clicks inside the cell and
then hits return.

How Can I get this to autommatically recalculate whenever someone opens the
file.
--
Cheers

Mark
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 339
Default Worksheet Function not refreshing


"Mark" wrote in message
...
I have a excel file which is used by several people and I wanted it to

show
who was using it at the moment so I wrote

Public Function CurrUserName(Workbook) As String
CurrUserName = Application.UserName
End Function

This does work but is only updated when someone clicks inside the cell and
then hits return.

How Can I get this to autommatically recalculate whenever someone opens

the
file.
--
Cheers

Mark


You need to use Appplication.Volatile

Public Function CurrUserName(Workbook) As String
Application.Volatile True
CurrUserName = Application.UserName
End Function

/Fredrik


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
Function Values Not Refreshing Carlee Excel Worksheet Functions 3 September 11th 08 02:03 PM
refreshing or repainting worksheet AlexD Excel Programming 1 May 21st 04 06:22 PM
refreshing custom function Juggernnath Excel Programming 1 October 6th 03 01:17 PM
Refreshing a Worksheet Dave Peterson[_3_] Excel Programming 1 August 5th 03 12:53 PM
Refreshing a Worksheet Dave Peterson[_3_] Excel Programming 0 August 5th 03 02:36 AM


All times are GMT +1. The time now is 01:44 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"