Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 550
Default Command Button Anomaly

I have a commandButton on a worksheet that calls up a UserForm.
If I click the button, bring up the UserForm and then exit the form
the caption on the button gets messed up (almost like the caption
was overwritten but shifted slightly).
Anyone ever run into this (and possibly a way to fix it)?
(TakeFocusOnClick is set to False although it acts the same
either way.)

Thanks,
John


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Command Button Anomaly

sounds like a screen redraw problem (perhaps). Do you have screenupdating
set to false? Does it clear up if you minimize the sheet, then maximize
it?

--
Regards,
Tom Ogilvy

"John Wilson" wrote in message
...
I have a commandButton on a worksheet that calls up a UserForm.
If I click the button, bring up the UserForm and then exit the form
the caption on the button gets messed up (almost like the caption
was overwritten but shifted slightly).
Anyone ever run into this (and possibly a way to fix it)?
(TakeFocusOnClick is set to False although it acts the same
either way.)

Thanks,
John




  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 550
Default Command Button Anomaly

Tom,

Does it clear up if you minimize the sheet, then maximize it?
Yes it does.

I tried this from another post of yours:
DoEvents
Application.ScreenUpdating = False
Application.ScreenUpdating = True
DoEvents
and it seems to work.

Thanks,
John

"Tom Ogilvy" wrote in message
...
sounds like a screen redraw problem (perhaps). Do you have screenupdating
set to false? Does it clear up if you minimize the sheet, then maximize
it?

--
Regards,
Tom Ogilvy

"John Wilson" wrote in message
...
I have a commandButton on a worksheet that calls up a UserForm.
If I click the button, bring up the UserForm and then exit the form
the caption on the button gets messed up (almost like the caption
was overwritten but shifted slightly).
Anyone ever run into this (and possibly a way to fix it)?
(TakeFocusOnClick is set to False although it acts the same
either way.)

Thanks,
John






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
command button add another command Wanna Learn Excel Discussion (Misc queries) 5 December 7th 08 11:42 PM
Command Button Mark New Users to Excel 2 March 23rd 05 10:33 AM
Command button Nick Excel Programming 3 February 15th 04 03:52 AM
Command Button vs Control Button RGibson Excel Programming 1 October 14th 03 02:24 AM
Command Button vs Form Button T K Excel Programming 4 August 26th 03 07:26 PM


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