Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
What is the significance of some of the VBA functions having a
counterpart with a $. For example there is the Mid function and also the Mid$ function. What is the difference? |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
As far as I know, it's just for backwards compatibility. Old versions of VBA
(such as Excel Basic and Word Basic) put a dollar at the end of every string/text function. You don't have to bother putting it in now and many of the functions have been improved to allow their use on more than just strings. "Kletcho" wrote: What is the significance of some of the VBA functions having a counterpart with a $. For example there is the Mid function and also the Mid$ function. What is the difference? |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Here an interesting discussion on it.
http://www.dailydoseofexcel.com/arch...on-efficiency/ Cheers Andy Martin wrote: As far as I know, it's just for backwards compatibility. Old versions of VBA (such as Excel Basic and Word Basic) put a dollar at the end of every string/text function. You don't have to bother putting it in now and many of the functions have been improved to allow their use on more than just strings. "Kletcho" wrote: What is the significance of some of the VBA functions having a counterpart with a $. For example there is the Mid function and also the Mid$ function. What is the difference? -- Andy Pope, Microsoft MVP - Excel http://www.andypope.info |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Without the $ character, the function returns a Variant
containing a String. The $ character forces the function to return a String type variable. Functions are more efficient with the $. -- Cordially, Chip Pearson Microsoft MVP - Excel Pearson Software Consulting, LLC www.cpearson.com "Kletcho" wrote in message oups.com... What is the significance of some of the VBA functions having a counterpart with a $. For example there is the Mid function and also the Mid$ function. What is the difference? |
#5
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Thank you.
|
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
In Excel, what do the dollar signs mean in $A$1 | Excel Worksheet Functions | |||
Dollar signs on all tabs | Excel Discussion (Misc queries) | |||
adding dollar signs | New Users to Excel | |||
Dollar signs | New Users to Excel | |||
Dollar SIgns in Formulas | Excel Discussion (Misc queries) |