Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 573
Default 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?

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default 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?



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 573
Default 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?


  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default 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?




  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 573
Default 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?





Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Range Expression RobertG Excel Discussion (Misc queries) 2 May 24th 10 09:59 PM
value expression RayB Excel Worksheet Functions 7 January 17th 07 09:57 PM
need help with expression Peterpunkin Excel Discussion (Misc queries) 5 May 4th 06 05:56 PM
Expression gudway New Users to Excel 3 May 4th 06 01:12 PM
Excel Expression Yubasus Excel Discussion (Misc queries) 2 November 26th 04 12:41 AM


All times are GMT +1. The time now is 01:10 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"