Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 171
Default Conditional Breakpoint?

I'm trying to debug a fairly hefty Macro. I need to tell it to break "When
myVar = yadda" so that I can see where it is running off the rails. Excel
Help doesn't even recognize the word "breakpoint" -- AAAAAAAAAAAARGHHHHHHHH!!
--
Dave
Temping with Staffmark
in Rock Hill, SC
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 171
Default Conditional Breakpoint?

Never mind -- I found it under Watch. GRRRRRRRRRR!
--
Dave
Temping with Staffmark
in Rock Hill, SC


"Dave Birley" wrote:

I'm trying to debug a fairly hefty Macro. I need to tell it to break "When
myVar = yadda" so that I can see where it is running off the rails. Excel
Help doesn't even recognize the word "breakpoint" -- AAAAAAAAAAAARGHHHHHHHH!!
--
Dave
Temping with Staffmark
in Rock Hill, SC

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4,391
Default Conditional Breakpoint?

Dave,
watches are not kept between sessions, so you have to set them each time you
open the file.
There also Debug.Assert. e.g. depending on what you need:

Debug.Assert myVar = "yadda"
Debug.Assert NOT (myVar = "yadda")

NickHK

"Dave Birley" wrote in message
...
I'm trying to debug a fairly hefty Macro. I need to tell it to break "When
myVar = yadda" so that I can see where it is running off the rails. Excel
Help doesn't even recognize the word "breakpoint" --

AAAAAAAAAAAARGHHHHHHHH!!
--
Dave
Temping with Staffmark
in Rock Hill, SC



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 171
Default Conditional Breakpoint?

Ah -- so my voyage of self-discovery wasn't the only solution! Thanks.
--
Dave
Temping with Staffmark
in Rock Hill, SC


"NickHK" wrote:

Dave,
watches are not kept between sessions, so you have to set them each time you
open the file.
There also Debug.Assert. e.g. depending on what you need:

Debug.Assert myVar = "yadda"
Debug.Assert NOT (myVar = "yadda")

NickHK

"Dave Birley" wrote in message
...
I'm trying to debug a fairly hefty Macro. I need to tell it to break "When
myVar = yadda" so that I can see where it is running off the rails. Excel
Help doesn't even recognize the word "breakpoint" --

AAAAAAAAAAAARGHHHHHHHH!!
--
Dave
Temping with Staffmark
in Rock Hill, SC




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
breakpoint calculation John C[_2_] Excel Worksheet Functions 0 October 22nd 08 02:27 PM
breakpoint calculation RagDyeR Excel Worksheet Functions 0 October 22nd 08 03:12 AM
breakpoint calculation Ron Rosenfeld Excel Worksheet Functions 0 October 22nd 08 03:07 AM
Breakpoint ok, no breakpoint messes up... Vikxcel[_8_] Excel Programming 0 January 4th 06 09:18 PM
Breakpoint in Worksheet_Change sub konpego Excel Programming 2 November 10th 04 10:43 AM


All times are GMT +1. The time now is 03:06 PM.

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"