+ Reply to Thread
Results 1 to 6 of 6

Intellisense for Parameters in VBA?

  1. #1
    Forum Contributor
    Join Date
    02-15-2012
    Location
    New York
    MS-Off Ver
    Excel 2010
    Posts
    141

    Intellisense for Parameters in VBA?

    Is there any way to activate Intellisense such that it only shows relevant parameter values?

    For instance, if I write the following, I'd like to know what the possible values are for the parameter "CopyOrigin". Nothing pops up by default, but if I press Ctrl+J a long drop-down list will appear. This is somewhat useful, but the vast majority of values in the drop-down list are irrelevant/invalid for this parameter.

    Please Login or Register  to view this content.
    I've also attached a screenshot for your reference.
    IntellisenseQuestion.png

  2. #2
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: Intellisense for Parameters in VBA?

    I think Intellisense works with properties and methods of an object. If you tell VBA you have an object, it will help you with its methods and properties.

  3. #3
    Forum Contributor
    Join Date
    02-15-2012
    Location
    New York
    MS-Off Ver
    Excel 2010
    Posts
    141

    Re: Intellisense for Parameters in VBA?

    Hmm...if that's the case, do you know how I would find out the relevant values for (for example) the "CopyOrigin" parameter? When I press F1 and go to Microsoft's documentation, it just provides a description.

  4. #4
    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: Intellisense for Parameters in VBA?

    Excel's help has gotten appallingly worse with every release since 2003.

    The best you can do, other than Google, is to use the object browser. If you guess to enter the word origin in the search box (maybe on your third try), you see enumeration XlInsertFormatOrigin with two members, xlFormatFromLeftOrAbove and xlFormatFromRightOrBelow.
    Entia non sunt multiplicanda sine necessitate

  5. #5
    Forum Contributor
    Join Date
    02-15-2012
    Location
    New York
    MS-Off Ver
    Excel 2010
    Posts
    141

    Re: Intellisense for Parameters in VBA?

    Thanks. Any idea if there's a systematic way to find the values for a parameter? Even a reference document listing the acceptable values for parameters would be useful. Otherwise you just have to constantly guess and pray that someone on the internet has already figured it out.

  6. #6
    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: Intellisense for Parameters in VBA?

    If I had a systematic way, I'd have shared it with you.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Intellisense
    By [email protected] in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 08-16-2006, 03:05 PM
  2. Intellisense
    By Stef in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 08-16-2006, 10:10 AM
  3. [SOLVED] Intellisense
    By Sandy in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-07-2006, 10:15 AM
  4. Intellisense does not pup up?
    By Ben in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-05-2006, 11:10 AM
  5. Intellisense
    By Kramer in forum Excel General
    Replies: 14
    Last Post: 02-20-2005, 09:06 AM

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