LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #7   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 57
Default function call not returning changed value


Indeed! Thanks Nick. I have to say that I'm a lot closer to understanding
the whole picture now, you have managed to simplify and clarify in a way that
the textbooks have not so far! Especially when to use byVal and byRef. Am
definitley not ready for the finer points, but alert to them and shall put
your advice in my stash.

Hope this is reaching a wider audience as well...

Thankyou again

Matilda



"NickHK" wrote:

Matilda,
It does take a little practice. And there are some finer points to the
situation that will confuse you if/when you come across them.
<Ignore until later if desired
Like passing an argument ByVal when it is declared ByRef in the function.
And using brackets or not when passing arguments.
</End Ignore

When passing an variable to a sub or function, decide if that variable needs
to be updated inside the called routine.
If Yes, pass ByRef.
If No (you only need to use its value), pass ByVal.
ByRef is the default if specify neither.

NickHK


 
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 changed hah Excel Worksheet Functions 2 November 10th 08 06:37 PM
Is there a do not call function? pokdbz Excel Discussion (Misc queries) 2 December 27th 07 04:00 PM
Call a Function Desert Piranha[_65_] Excel Programming 3 March 15th 06 03:13 AM
Returning actual page field changed in pivottable Grant Excel Programming 0 September 27th 04 01:02 AM
returning ranges offset from argument range function call Peter Williams Excel Programming 5 February 8th 04 11:59 PM


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