Solved

Sign ' := ' in vba

Posted on 2016-09-06
4
26 Views
Last Modified: 2016-09-06
What is the ' :=' sign in excel Vba ? Is it some sort of operator ?
0
Comment
Question by:Shrikant Dixit
  • 2
  • 2
4 Comments
 
LVL 47

Expert Comment

by:Wayne Taylor (webtubbs)
ID: 41786918
It's used to specify the values for the arguments in a function. It has no other direct meaning.

An example (copying worksheets) on it's use is....

    Worksheets("Sheet1").Copy After:=Worksheets("Sheet3")

...which creates a copy of Sheet1 and places it after Sheet3. It can also be written like this...

    Worksheets("Sheet1").Copy , Worksheets("Sheet3")

Note the comma. When not specifying the argument as in the first example, arguments must be in the function order, which for the Worksheet.Copy function is ([Before], [After]).
0
 

Author Comment

by:Shrikant Dixit
ID: 41787044
Dear Mr.Taylor,
Thank a lot. I wonder why nothing is said about this in msdn or any other litrature.
Thanks again.
Shrikant Dixit
0
 
LVL 47

Accepted Solution

by:
Wayne Taylor (webtubbs) earned 500 total points
ID: 41787056
0
 

Assisted Solution

by:Shrikant Dixit
Shrikant Dixit earned 0 total points
ID: 41787144
Dear Mr. Taylor,
Thanks a lot. Now I am fully satisfied. My question is resolved.
Shrikant Dixit
0

Featured Post

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

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

Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
This code takes an Excel list of URL’s and adds a header titled “URL List”. It then searches through all URL’s in column “A”, looking for duplicates. When a duplicate is found, it is moved to the top of the list. The duplicate URL’s are then highlig…
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

786 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