Share via

Intellisense practically not working.

Anonymous
2010-08-14T16:19:15+00:00

I'm trying to write VBA macro for Excel 2010. I used to have functional intellisense with older version of office but now it is practically not working.

For example if I type:

**Sub Test()  Worksheets(**At this point I got intellisense giving me help that function need index. So I keep writing:

Worksheets(1).

After "dot" nothing happens. Nothing shows up of what I could select. And this is typical for practically every object. I can for example write:

Worksheets("Sheet1").Range("A1").

and again after "dot" I'm getting nothing. However there is no bug in the surboutine. For example if I wrtie complete subroutine:

Sub Test()  Worksheets(1).Range("A1").Value = 20End Sub

and run it, it runs perfect without any error message and does fill cell A1 with the value of 20. However editing second line of the above code after the run still does not brings up intellisense.

One more info is that when I put cursor over the object such as Range or Worksheet and press F2 the object explorer comes up with full info about the object under the cursor so the library is clearly loaded.

HELP, what is wrong that I do not have working intellisense ?

Jack

Microsoft 365 and Office | Excel | For home | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

3 answers

Sort by: Most helpful
  1. Anonymous
    2010-08-14T16:28:21+00:00

    I recommend using:

    Sub Test()

        Dim wb As Worksheet

        wb.Range("A1").Value = 10

    End Sub

    The intellisense will be fully functional.

    Was this answer helpful?

    1 person found this answer helpful.
    0 comments No comments
  2. Anonymous
    2010-08-15T11:43:09+00:00

    Oh yes, thank you OssieMac. Also, it is recommended using ws for naming a Worksheet than wb.

    Was this answer helpful?

    0 comments No comments
  3. OssieMac 48,001 Reputation points Volunteer Moderator
    2010-08-15T06:27:12+00:00

    Felipe Benza omitted a line in the example.

    Sub Test()

       Dim wb As Worksheet

       Set wb = Worksheets("Sheet1")

       wb.Range("A1").Value = 10

    End Sub


    Regards, OssieMac

    Was this answer helpful?

    0 comments No comments