LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,058
Default VBA Function not refresh

Suppose you wanted a function that returned the value in A1 doubled. There
are two ways to code this:

function bump(r as range)
bump=(r.value)*2
end function

and

function bump()
bump=(range("A1").value)*2
end function

put 10 in A1 and either code will return 20. However if you change A1 only
the first code will respond to the change.
--
Gary''s Student


"tzcarmy" wrote:


Thanx
I'll read it.


--
tzcarmy
------------------------------------------------------------------------
tzcarmy's Profile: http://www.excelforum.com/member.php...fo&userid=9232
View this thread: http://www.excelforum.com/showthread...hreadid=528022


 
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
Table function, 2 variables. Problem with update/refresh lorenzo Excel Worksheet Functions 5 November 25th 06 10:55 PM
Refresh/Recalculate a Custom Function dch3 Excel Worksheet Functions 1 July 31st 06 01:59 PM
Customized function (in cell) does not refresh value :o( MarcL Excel Discussion (Misc queries) 3 February 28th 06 08:57 PM
function values do not refresh Jacob Excel Worksheet Functions 2 April 1st 05 09:51 PM
Function and needing to Refresh Mike Excel Programming 2 December 24th 03 04:22 PM


All times are GMT +1. The time now is 08:52 AM.

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"