LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
boswald
 
Posts: n/a
Default Breakpoint will not stop Excel subroutine


I have a routine (CreateTextFile) that accepts a type variable, and
saves the selected cells as a csv or tab file, giving a message box at
the end "file xxx saved".

I have attached it to a toolbar button, with the assigned macro as
'CreateTextFile("tab")".

When I click the button, the macro runs twice - it displays the msgbox
twice.

So it inserted a breakpoint, and the code doesn't stop, it just runs
twice anyway.

I found an entry in this forum - "Breakpoint will not stop Excel
function" posted "03-08-2004, 03:50 PM", but the question of why the
breakpiont gets ignored was not answered.

Does anyone have any ideas why a breakpoint will be ignored?

This routine is definately being run by pressing the button, and if I
call it from another short subroutine and pass it "tab" or "csv" it
runs only once, and breakpoints or single stepping work fine.

Thanks,

boswald


--
boswald
------------------------------------------------------------------------
boswald's Profile: http://www.excelforum.com/member.php...o&userid=26566
View this thread: http://www.excelforum.com/showthread...hreadid=398407

 
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
To stop Excel from opening many workbooks at startup BHARATH RAJAMANI Excel Discussion (Misc queries) 1 March 21st 05 03:53 AM
How can I stop Excel from displaying rounded numbers? Credit car. OldManP Excel Discussion (Misc queries) 3 December 8th 04 07:52 PM
stop excel from shifting cells up when a query returns no data DrLostinExcel Excel Worksheet Functions 2 November 9th 04 05:44 PM
How do I stop the autopaste function in Excel? Jules Excel Worksheet Functions 1 November 1st 04 09:54 PM
How do I stop automatic page breaks in excel Lesley Hutchinson Excel Worksheet Functions 0 October 31st 04 12:49 PM


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