ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Invalid watch expression (https://www.excelbanter.com/excel-programming/333038-invalid-watch-expression.html)

davegb

Invalid watch expression
 
I looked in Walkenbach and did a search here, but couldn't find
anything in either about this error when I run a line of code in the
Immediate window, "Invalid Watch Expression". Does anyone know what it
means?


Bob Phillips[_6_]

Invalid watch expression
 
Is the object fully qualified, i.e. not something like

?.Range("A1").Value

but

?activeworkbook.Range("A1").Value

--

HTH

RP
(remove nothere from the email address if mailing direct)


"davegb" wrote in message
oups.com...
I looked in Walkenbach and did a search here, but couldn't find
anything in either about this error when I run a line of code in the
Immediate window, "Invalid Watch Expression". Does anyone know what it
means?




davegb

Invalid watch expression
 
That was it Bob! What does the "?" do?


Bob Phillips wrote:
Is the object fully qualified, i.e. not something like

?.Range("A1").Value

but

?activeworkbook.Range("A1").Value

--

HTH

RP
(remove nothere from the email address if mailing direct)


"davegb" wrote in message
oups.com...
I looked in Walkenbach and did a search here, but couldn't find
anything in either about this error when I run a line of code in the
Immediate window, "Invalid Watch Expression". Does anyone know what it
means?



Bob Phillips[_6_]

Invalid watch expression
 
That is effectively a print statement in the immediate window. Very useful
when debugging to stop execution at some point and check the value of a
variable. Similar to watch, but not updated as the value changes, but you
can also get the values of items that are not in the code but may give you
cause for concern.

--

HTH

RP
(remove nothere from the email address if mailing direct)


"davegb" wrote in message
oups.com...
That was it Bob! What does the "?" do?


Bob Phillips wrote:
Is the object fully qualified, i.e. not something like

?.Range("A1").Value

but

?activeworkbook.Range("A1").Value

--

HTH

RP
(remove nothere from the email address if mailing direct)


"davegb" wrote in message
oups.com...
I looked in Walkenbach and did a search here, but couldn't find
anything in either about this error when I run a line of code in the
Immediate window, "Invalid Watch Expression". Does anyone know what it
means?





davegb

Invalid watch expression
 
Thanks for the explanation, Bob.

Bob Phillips wrote:
That is effectively a print statement in the immediate window. Very useful
when debugging to stop execution at some point and check the value of a
variable. Similar to watch, but not updated as the value changes, but you
can also get the values of items that are not in the code but may give you
cause for concern.

--

HTH

RP
(remove nothere from the email address if mailing direct)


"davegb" wrote in message
oups.com...
That was it Bob! What does the "?" do?


Bob Phillips wrote:
Is the object fully qualified, i.e. not something like

?.Range("A1").Value

but

?activeworkbook.Range("A1").Value

--

HTH

RP
(remove nothere from the email address if mailing direct)


"davegb" wrote in message
oups.com...
I looked in Walkenbach and did a search here, but couldn't find
anything in either about this error when I run a line of code in the
Immediate window, "Invalid Watch Expression". Does anyone know what it
means?





All times are GMT +1. The time now is 06:51 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com