Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default a weird question

I'm trying to change some codes in a module I created in VBA. And the result
when I use F5 to run the module is ok. But when I try to call it by click a
button, some of the result lines are disappeared. I've tried to debug the
module step-by-step but the result is always the same.

Is there anyone encountered such weird situation? Could you guys tell me why
this could happen?

Thanks a lot!
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default a weird question

If you click a button from the control toolbox toolbar (placed on a worksheet)
and you're using xl97, then try changing the .takefocusonclick property of that
button to false. (A bug in xl97 that was fixed in xl2k.)

If your code works on the activesheet, make sure you activate the correct sheet
first (or remove the reliance on the activesheet and work directly on the sheet
you need).

If your code is behind a worksheet, remove the .selects and .activates and work
directly on the other sheet.

If none of this makes any sense, you may want to post the problem portion of
your code, the version of excel you're using and where the code is located (in a
general module or behind a worksheet named ???).



Mattew wrote:

I'm trying to change some codes in a module I created in VBA. And the result
when I use F5 to run the module is ok. But when I try to call it by click a
button, some of the result lines are disappeared. I've tried to debug the
module step-by-step but the result is always the same.

Is there anyone encountered such weird situation? Could you guys tell me why
this could happen?

Thanks a lot!


--

Dave Peterson
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
Weird Merge question jlclyde Excel Discussion (Misc queries) 1 January 10th 08 10:28 PM
WEIRD QUESTION Louise Excel Discussion (Misc queries) 4 September 23rd 06 12:07 AM
Weird question on filling in typing in excel bwall Excel Discussion (Misc queries) 3 September 6th 05 09:24 PM
Weird jhill New Users to Excel 1 August 10th 05 04:48 PM
Weird SQL Question simsjr Excel Programming 10 November 16th 04 04:28 PM


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