+ Reply to Thread
Results 1 to 5 of 5

What do curly brackets /braces {} do in VBA

  1. #1
    Registered User
    Join Date
    11-14-2012
    Location
    world
    MS-Off Ver
    Excel 2010
    Posts
    18

    What do curly brackets /braces {} do in VBA

    Hi

    What do the curly brackets "{}" do in the below code
    Please Login or Register  to view this content.
    Peace

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: What do curly brackets /braces {} do in VBA

    Nothing -- that's not valid VBA syntax, with or without the curly braces.
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Forum Contributor dogberry's Avatar
    Join Date
    07-15-2012
    Location
    Wales, UK
    MS-Off Ver
    Excel 2010
    Posts
    624

    Re: What do curly brackets /braces {} do in VBA

    http://www.grasshopper3d.com/forum/t...-curly-bracket

    Hi

    Have a look at the above and see if that helps. Not a question I can answer myself.

    Chris
    Click my star if I helped Thanks

  4. #4
    Registered User
    Join Date
    11-14-2012
    Location
    world
    MS-Off Ver
    Excel 2010
    Posts
    18

    Re: What do curly brackets /braces {} do in VBA

    Thanks for link dogberry, it seems the curly brackets can be used to insert elements into the array at the same time the array is being typecasted.

    @shg, i tried running the code, and you're right that excel does not accept it as valid code; but it's kinda weird as I copied it from a page from the Microsoft Developer Network-- http://msdn.microsoft.com/en-us/libr...=vs.80%29.aspx

  5. #5
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: What do curly brackets /braces {} do in VBA

    VB.Net and VBA are different languages.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1