+ Reply to Thread
Results 1 to 7 of 7

Objects Properties in VBA

  1. #1
    Registered User
    Join Date
    06-15-2019
    Location
    London
    MS-Off Ver
    10
    Posts
    3

    Objects Properties in VBA

    Hello,

    in this code:

    Please Login or Register  to view this content.
    a list of properties and functions will show when a dot is entered after Range("A1").

    Can anyone explain why in this code

    Please Login or Register  to view this content.
    such a list will not appear

    Thanks, Liglin
    Last edited by AliGW; 06-15-2019 at 12:59 AM.

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,826

    Re: Objects Properties in VBA

    Administrative Note:

    Welcome to the forum.

    We would very much like to help you with your query, however you need to include code tags around your code.

    Please take a moment to add the tags. Posting code between [CODE]Please [url=https://www.excelforum.com/login.php]Login or Register [/url] to view this content.[/CODE] tags makes your code much easier to read and copy for testing, and it also maintains VBA formatting.

    Click on Edit to open your post, then highlight your code and click the # icon at the top of your post window. More information about these and other tags can be found here

    (Note: this change is not optional. As you are new here, I have done it for you this time.)
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,167

    Re: Objects Properties in VBA

    Hi Liglin,

    The topic is called VBA Intellisense. See if this Video doesn't get close to answering your question.

    https://www.bing.com/videos/search?q...5A&FORM=VDQVAP

    Or the answer lies in this thread:

    https://stackoverflow.com/questions/...ba-not-working
    Last edited by MarvinP; 06-15-2019 at 01:35 AM.
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  4. #4
    Forum Guru bakerman2's Avatar
    Join Date
    10-03-2012
    Location
    Antwerp, Belgium
    MS-Off Ver
    MO Prof Plus 2016
    Posts
    6,907

    Re: Objects Properties in VBA

    You missed the s in Sheets.

    Please Login or Register  to view this content.
    Avoid using Select, Selection and Activate in your code. Use With ... End With instead.
    You can show your appreciation for those that have helped you by clicking the * at the bottom left of any of their posts.

  5. #5
    Forum Expert rorya's Avatar
    Join Date
    08-13-2008
    Location
    East Sussex, UK
    MS-Off Ver
    365 Ent Monthly Channel / Insiders Beta
    Posts
    8,913

    Re: Objects Properties in VBA

    Sheets(1) returns an Object, so everything that follows is late bound, hence no Intellisense. If you declared a Worksheet variable, and assigned Sheets(1) to it, you would then get Intellisense - e.g.

    Please Login or Register  to view this content.
    Rory

  6. #6
    Registered User
    Join Date
    06-15-2019
    Location
    London
    MS-Off Ver
    10
    Posts
    3

    Re: Objects Properties in VBA

    Hello Ali,
    thank you for your information.

    Liglin

  7. #7
    Registered User
    Join Date
    06-15-2019
    Location
    London
    MS-Off Ver
    10
    Posts
    3

    Re: Objects Properties in VBA

    Hi MarvinP,
    thanks for these useful links. How did you find them?

    Liglin

+ 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. VBA objects, properties and methods for coauthoring
    By PatFinegan in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 09-16-2018, 03:56 PM
  2. Assigning properties to objects at Runtime
    By bizmita in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-06-2015, 06:23 PM
  3. Identifying objects, properties and other things
    By Excel_vba in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-18-2013, 11:20 PM
  4. Accessing properties of Grouped objects which are inside other groups
    By jgross in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-06-2013, 12:06 PM
  5. Objects, Properties and Methods
    By noclass1980 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 10-09-2012, 06:34 AM
  6. Objects, Properties and Methods
    By noclass1980 in forum Excel General
    Replies: 0
    Last Post: 10-09-2012, 02:33 AM
  7. Objects and their typical properties...
    By phuang1226 in forum Excel - New Users/Basics
    Replies: 2
    Last Post: 09-20-2006, 01:11 PM

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