Results 1 to 2 of 2

Thread: [RESOLVED] [Excel VBA] Right$ and Left$

  1. #1

    Thread Starter
    Member
    Join Date
    May 2011
    Posts
    42

    Resolved [RESOLVED] [Excel VBA] Right$ and Left$

    I know what Right and Left do. What is the difference if they have a dollar sign at the end?

    Thanks

  2. #2
    Super Moderator si_the_geek's Avatar
    Join Date
    Jul 2002
    Location
    Bristol, UK
    Posts
    41,974

    Re: [Excel VBA] Right$ and Left$

    They do the same thing, but the $ versions use (and return) the String data type rather than the Variant data type.

    As such the $ versions tend to be faster, which can be significant if you are using them a lot inside a loop.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width