Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10
Default Sometimes macro does not run

Hi:

I have user form with couple of RefEdit controls, two
sets of option controls, and a couple check boxes.

The code works fine usually. I fill the user form with
data and click OK and the code generates desired output.
If I click Cancel the code stops execution.

But sometimes it does not work. Here is what happens.
After I fill the form with data I press OK, but nothing
happens. Then I try clicking Cancel, and that does not
work either. Then if click the Excel book icon from the
taskbar, a RefEdit window appears floating outside the
form with a cell address that I pointed to when filling
one of the Refedit fields. Then, I have close the
floating window and go to VBEditor and break the code
execution. It looks like the problem is with the focus
not returning to the form, but I am not sure.

I appreciate the fantastic help I received today from
this group. I thabk you in advance for helping me with
this problem.

-- Dileepan
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,080
Default Sometimes macro does not run

Unfortunately, RefEdit is a very buggy control.

If it is in a frame, try moving it out of the frame as the bugginess seems
to be exacerbated by the frame.

--

Vasant


"P. Dileepan" wrote in message
...
Hi:

I have user form with couple of RefEdit controls, two
sets of option controls, and a couple check boxes.

The code works fine usually. I fill the user form with
data and click OK and the code generates desired output.
If I click Cancel the code stops execution.

But sometimes it does not work. Here is what happens.
After I fill the form with data I press OK, but nothing
happens. Then I try clicking Cancel, and that does not
work either. Then if click the Excel book icon from the
taskbar, a RefEdit window appears floating outside the
form with a cell address that I pointed to when filling
one of the Refedit fields. Then, I have close the
floating window and go to VBEditor and break the code
execution. It looks like the problem is with the focus
not returning to the form, but I am not sure.

I appreciate the fantastic help I received today from
this group. I thabk you in advance for helping me with
this problem.

-- Dileepan



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Sometimes macro does not run


But sometimes it does not work. Here is what happens.
After I fill the form with data I press OK, but nothing
happens.


I have figured out the problem, there were
a few controls hiding behind the one's I had.
After removing I have not had the problem.

-- Dileepan
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
Macro recorded... tabs & file names changed, macro hangs Steve Excel Worksheet Functions 3 October 30th 09 11:41 AM
need help to update macro to office 2007 macro enabled workbook jatman Excel Discussion (Misc queries) 1 December 14th 07 01:57 PM
Macro Help Needed - Excel 2007 - Print Macro with Auto Sort Gavin Excel Worksheet Functions 0 May 17th 07 01:20 PM
Macro needed to Paste Values and prevent Macro operation thunderfoot Excel Discussion (Misc queries) 1 June 11th 05 12:44 AM
Start Macro / Stop Macro / Restart Macro Pete[_13_] Excel Programming 2 November 21st 03 05:04 PM


All times are GMT +1. The time now is 07:27 AM.

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

About Us

"It's about Microsoft Excel"