Link to home
Start Free TrialLog in
Avatar of BigWill5112
BigWill5112

asked on

vba screentip not working

no master at vba but feel i'm getting better.  See the below screenshot.  after I hit the spacebar after the "d" in find its giving me a screentip for the offset method not the find method.  Why is it doing this?

Book1.xlsx
Avatar of [ fanpages ]
[ fanpages ]

Hi,

firstrow.Offset(0, 2) = shtNames.Range("a1").EntireColumn.Find

User generated image
The IntelliSense feature is probably getting confused due to the structure of the statement you are using, or there is an issue with aligning the caret (text insert) position in the code module pane.

Moving or re-sizing the window may well resolve the issue.  Alternatively, adding spaces between your other code statements may work.

However, restructing the code statement into two distinct statments may resolve the issue too.

Try using a Range object for the result of the Find statement:

Dim objRange As Range
.
.
.
Set objRange = shtNames.Range("a1").EntireColumn.Find...<note what is shown in the "tooltip" here>


Then...

firstrow.Offset(0, 2) = objRange

BFN,

fp.
also, try

firstrow.Offset(0, 2).value = shtNames.Range("a1").EntireColumn.Find
ASKER CERTIFIED SOLUTION
Avatar of BigWill5112
BigWill5112

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
:)

So simply adding the open parenthesis (bracket) "(" to the line "resolved" the issue?

Yes, by all means close the question.  That is indeed normal functionality!

Glad you learned a few things along the way though.

Good luck with the rest of your project.
Avatar of BigWill5112

ASKER

because it is the only thing that works.