Solved

excel vba question by ref by value

Posted on 2014-09-29
2
150 Views
Last Modified: 2014-09-29
i have read many books and i try to explain the difference between "By Ref" and "By Value" by a good example. but could not find a good example.

can any please shed light?

thanks.
0
Comment
Question by:ProfessorJimJam
2 Comments
 
LVL 142

Accepted Solution

by:
Guy Hengel [angelIII / a3] earned 500 total points
ID: 40349436
if you define a procedure having a parameter "by value", you cannot get have your variable get modified by the procedure, while if you have the parameter "by ref", the procedure can modify it...
see the explanations here:
http://msdn.microsoft.com/en-us/library/ddck1z30.aspx
the example is vb.net code, but the principle is exactly the same
0
 
LVL 25

Author Closing Comment

by:ProfessorJimJam
ID: 40349437
thank you
0

Featured Post

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

How to quickly and accurately populate Word documents with Excel data, charts and images (including Automated Bookmark generation) David Miller (dlmille) Synopsis In this article you’ll learn how to use ExcelToWord! to copy data,charts, shapes …
When you see single cell contains number and text, and you have to get any date out of it seems like cracking our heads.
This Micro Tutorial demonstrates how to create Excel charts: column, area, line, bar, and scatter charts. Formatting tips are provided as well.
This Micro Tutorial demonstrates in Microsoft Excel how to consolidate your marketing data by creating an interactive charts using form controls. This creates cool drop-downs for viewers of your chart to choose from.

813 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now