Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9
Default "Stop" not working

My programme is not doing what it's supposed to.

My standard approach (used successfully many many times and presumably the
morm)) in such cases is to put "Stop" in just before the relevant code line,
and then step through the code line-by-line. However, if I do this in this
particular case, the programme carries on through as normal, doing all the
instructions around the Stop, and completely ignoring it. Suggestions,
please?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default "Stop" not working


Well not having seen your code or knowing what you are trying to achiev
i suggest that where you would want the code to break momentarily yo
would need to type msgbox "your comment here", so now to move on yo
need to click ok or programme the vbok to perform the task yo
require.

Hope this helps.

Simo

--
Simon Lloy
-----------------------------------------------------------------------
Simon Lloyd's Profile: http://www.excelforum.com/member.php...nfo&userid=670
View this thread: http://www.excelforum.com/showthread.php?threadid=26677

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default "Stop" not working

Use breakpoints, that is the norm.

--

HTH

RP

"JMCS" wrote in message
...
My programme is not doing what it's supposed to.

My standard approach (used successfully many many times and presumably the
morm)) in such cases is to put "Stop" in just before the relevant code

line,
and then step through the code line-by-line. However, if I do this in

this
particular case, the programme carries on through as normal, doing all the
instructions around the Stop, and completely ignoring it. Suggestions,
please?



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9
Default "Stop" not working

Thanks, Bob

You didn't answer my question, but your suggestion helped me solve the
programme problem.

I'd still like to know what is going wrong with "Stop" as I've being using
it without problem for over 12 months (limit of my exposure to Excel VB)

"Bob Phillips" wrote:

Use breakpoints, that is the norm.

--

HTH

RP

"JMCS" wrote in message
...
My programme is not doing what it's supposed to.

My standard approach (used successfully many many times and presumably the
morm)) in such cases is to put "Stop" in just before the relevant code

line,
and then step through the code line-by-line. However, if I do this in

this
particular case, the programme carries on through as normal, doing all the
instructions around the Stop, and completely ignoring it. Suggestions,
please?




  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9
Default "Stop" not working

Simon

Thanks for your advice. I was about to follow it when Bob's suggestion came
in. Still on the learning curve...........

"Simon Lloyd" wrote:


Well not having seen your code or knowing what you are trying to achieve
i suggest that where you would want the code to break momentarily you
would need to type msgbox "your comment here", so now to move on you
need to click ok or programme the vbok to perform the task you
require.

Hope this helps.

Simon


--
Simon Lloyd
------------------------------------------------------------------------
Simon Lloyd's Profile: http://www.excelforum.com/member.php...fo&userid=6708
View this thread: http://www.excelforum.com/showthread...hreadid=266770




  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default "Stop" not working

The problem for me with Stop is that you have to amend the code to add it,
and then remove it again later. If you break at many different points in a
large program, this becomes a headache.

I would also suggest that Stop is a legacy of previous versions of Basic,
before we had any decent debugging tools. Breakpoints, stepping code, Watch
items, etc., are more sophisticated and more flexible.

--

HTH

RP

"JMCS" wrote in message
...
Thanks, Bob

You didn't answer my question, but your suggestion helped me solve the
programme problem.

I'd still like to know what is going wrong with "Stop" as I've being using
it without problem for over 12 months (limit of my exposure to Excel VB)

"Bob Phillips" wrote:

Use breakpoints, that is the norm.

--

HTH

RP

"JMCS" wrote in message
...
My programme is not doing what it's supposed to.

My standard approach (used successfully many many times and presumably

the
morm)) in such cases is to put "Stop" in just before the relevant code

line,
and then step through the code line-by-line. However, if I do this in

this
particular case, the programme carries on through as normal, doing all

the
instructions around the Stop, and completely ignoring it.

Suggestions,
please?






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
How stop the "started office live" pop-up to stop. it is checked yrose24 Excel Discussion (Misc queries) 1 September 2nd 09 03:32 PM
How do I stop "global" hyperlinks changing to "local" links? Em Excel Worksheet Functions 2 August 26th 08 01:18 PM
Excel - Golf - how to display "-2" as "2 Under" or "4"as "+4" or "4 Over" in a calculation cell Steve Kay Excel Discussion (Misc queries) 2 August 8th 08 01:54 AM
change "true" and "false" to "availble" and "out of stock" inthestands Excel Worksheet Functions 2 July 19th 07 07:05 PM
Working out age from "Day" "Month" "Year" timmyc Excel Worksheet Functions 4 February 5th 06 03:07 PM


All times are GMT +1. The time now is 02:13 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"