Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 300
Default Macro: With Stop it works. Without Stop it doesn't.

I'm having great difficulty debugging the initialization of a user form. As
part of the initialization it gets data from an Access database and gives
combo boxes their lists. Then at the end of the initialization it gives the
combo boxes values saved in spreadsheet cells. Two of these show up blank
(the list is fine). There is no code after assigning the value that could
trigger a change event. If I put a Stop anywhere in the initialization
macro, and then do nothing but continue, it works fine. So stopping and
stepping through is useless for debugging. It will always work. What's up?

Don <donwiss at panix.com.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 184
Default Macro: With Stop it works. Without Stop it doesn't.

Hi Don,

So stopping and
stepping through is useless for debugging. It will always work.

What's up?

did you try to save the workbook under a new name (save as), then "open
and repair" (from Excel XP and later)? Try to create a new module/form
(whatsoever) in VBE and copy all your code there and delete the old
module. I remember having this problem cause by a corrupt Excel file.

But still, are you sure your connection to Access works correctly? Try
to pause your macro with application.wait (or maybe a dummy loopt with
do events). What happens, if you fill your list manually instead of the
access connection (like test1, test2... test10)?

regards

arno

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 300
Default Macro: With Stop it works. Without Stop it doesn't.

On Mon, 11 Oct 2004 16:22:03 +0200, "arno" wrote:

So stopping and
stepping through is useless for debugging. It will always work.
What's up?


did you try to save the workbook under a new name (save as), then "open
and repair" (from Excel XP and later)? Try to create a new module/form
(whatsoever) in VBE and copy all your code there and delete the old
module. I remember having this problem cause by a corrupt Excel file.


I've tried saving, deleting and importing the module. I have not tried
repairing the workbook. I then changed it from an Initialize routine to an
Activate routine. Then it worked. But when I clicked the done button the
two fields promptly cleared and it then fails on my required input edits.

But still, are you sure your connection to Access works correctly? Try
to pause your macro with application.wait (or maybe a dummy loopt with
do events).


I haven't tried a wait. I will.

What happens, if you fill your list manually instead of the
access connection (like test1, test2... test10)?


Since this is spreadsheet cell data I am putting in the fields I have no
reason to suspect Access. But I can try this.

Thanks for your suggestions. This is a low priority project, but I do plan
to spend some time on it today.

Don <donwiss at panix.com.
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
Macro Stop LMP Excel Worksheet Functions 3 April 28th 08 07:33 PM
Macro to stop at a certain tab and does not go to the next one. [email protected] Excel Worksheet Functions 3 March 16th 06 01:11 AM
How do I stop other circles in other cells to stop selecting? stauff Excel Worksheet Functions 2 October 29th 04 09:02 PM
How do I stop other circles in other boxes to stop selecting? stauff Excel Worksheet Functions 1 October 28th 04 10:27 PM


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