Results 1 to 2 of 2

Thread: reference for vb_______ constants?

  1. #1

    Thread Starter
    Member
    Join Date
    Dec 2009
    Location
    Oregon
    Posts
    34

    reference for vb_______ constants?

    Once again I can't figure out how to look something up effectively...

    I have found this minimal list that contains vbLf, vbNullString, and such...
    http://msdn.microsoft.com/en-us/libr...(v=VS.80).aspx

    But what about things such as "vbArray" and "vbVarType", etc.?? I see they are related after looking up vbArray in the object browser- then playing with the immediate window, etc. to figure out what it is...I think... but where is a reference for these constants? And to add to my confusion, on the MSDN site every single "constant" (under "enumerations") starts with "xl" not "vb".

    What's up with this aspect of the language? Seems like there are probably a ton of them and a list would be handy to have... any tips on this? Thanks!
    Last edited by fumalicious; Jan 25th, 2011 at 02:25 AM.

  2. #2
    PowerPoster
    Join Date
    Dec 2004
    Posts
    25,618

    Re: reference for vb_______ constants?

    xl constants are specific to excel objects
    most, but not all, vb constants are valid in vba
    each office application has constants specific to its own objects, generally prefixed with indication of application (xl, wd etc)
    i do my best to test code works before i post it, but sometimes am unable to do so for some reason, and usually say so if this is the case.
    Note code snippets posted are just that and do not include error handling that is required in real world applications, but avoid On Error Resume Next

    dim all variables as required as often i have done so elsewhere in my code but only posted the relevant part

    come back and mark your original post as resolved if your problem is fixed
    pete

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