Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,119
Default Worksheet Functions that Change Other Cells

Nope there is no way around it. A function called within a worksheet can not
change the contents of other cells. The only exception that I know of is that
it can change the contents of a comment for another cell.
--
HTH...

Jim Thomlinson


"Robert Mulroney" wrote:


There seems to be some kind of security that prevents a function called from
a worksheet changing other cells (on that sheet or anyother). Is there anyway
to get around that? I'm hopeing to update a range of cells when the sheet
calculates without using the "onCalcluate" event.

In fact I know that it's possible because I use a thrid party product that
does just this. How it does it is somewhat of a mistery to all of us.

To hopefully make myself clearer if I call this function:

Public Function timesTheyAreAChanging() As String
timesTheyAreAChanging = "Time"
Range("A3") = Now()
End Function

From a worksheet using:

"=timesTheyAreAChanging()"

then it returns an error result.

Yet if I comment-out the line that changes another cell then it works fine.
This is obviously a simple example what I want to do is much more complex but
the problem remains the same.


- Rm

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
Why all the cells format on my worksheet change to date automatica Eddie Excel Discussion (Misc queries) 2 June 22nd 09 01:28 PM
How to set up worksheet where cells change monthly Robina Excel Worksheet Functions 5 November 10th 08 07:29 PM
how can i change the colum width for cells on the same worksheet Becky Robinson Paine Excel Discussion (Misc queries) 1 June 17th 06 05:26 AM
How to make a function change other cells in worksheet James4U2enjoy Excel Programming 2 October 14th 05 04:45 PM
worksheet functions change to values? Formula are text? Christy Excel Programming 3 August 31st 05 09:26 PM


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