Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 7
Default Command Button Disappears??

I have a command button in place to clear certain cells when it is pressed.
Everytime it is pressed the button disappears and won't come back. How do I
keep the button active and visible after it is pressed?
Thanks,
Trevor
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default Command Button Disappears??

Make sure your zoom is set to 100%.

And you may find that the buttons from the Forms toolbar behave nicer. (Yep,
they have a lot fewer features, too.)

TrevorC wrote:

I have a command button in place to clear certain cells when it is pressed.
Everytime it is pressed the button disappears and won't come back. How do I
keep the button active and visible after it is pressed?
Thanks,
Trevor


--

Dave Peterson
  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 7
Default Command Button Disappears??

Thank for the response. The button was created through the Control Toolbox
and Visual Basic. Once the macro is activated the button disappears and you
have to close the sheet and reopen to reset it. The code I have is as
follows:

Private Sub CommandButton1_Click()
CommandButton1.Visible = False
Worksheets("Sheet1").Range("G60").ClearContents

End Sub

Is it possible to get the button to stay?

"Dave Peterson" wrote:

Make sure your zoom is set to 100%.

And you may find that the buttons from the Forms toolbar behave nicer. (Yep,
they have a lot fewer features, too.)

TrevorC wrote:

I have a command button in place to clear certain cells when it is pressed.
Everytime it is pressed the button disappears and won't come back. How do I
keep the button active and visible after it is pressed?
Thanks,
Trevor


--

Dave Peterson

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default Command Button Disappears??

Remove the .visible line from the code????

That line hides the button.

===
There have been other posts where the button disappears for no apparent
reason--not like your case. I assumed that your problem was like those other
posts. Sorry.

TrevorC wrote:

Thank for the response. The button was created through the Control Toolbox
and Visual Basic. Once the macro is activated the button disappears and you
have to close the sheet and reopen to reset it. The code I have is as
follows:

Private Sub CommandButton1_Click()
CommandButton1.Visible = False
Worksheets("Sheet1").Range("G60").ClearContents

End Sub

Is it possible to get the button to stay?

"Dave Peterson" wrote:

Make sure your zoom is set to 100%.

And you may find that the buttons from the Forms toolbar behave nicer. (Yep,
they have a lot fewer features, too.)

TrevorC wrote:

I have a command button in place to clear certain cells when it is pressed.
Everytime it is pressed the button disappears and won't come back. How do I
keep the button active and visible after it is pressed?
Thanks,
Trevor


--

Dave Peterson


--

Dave Peterson
  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 7
Default Command Button Disappears??

Perfect!! Worked just like I wanted. Figures something so simple caused me
all this trouble.
Thanks!!

"Dave Peterson" wrote:

Remove the .visible line from the code????

That line hides the button.

===
There have been other posts where the button disappears for no apparent
reason--not like your case. I assumed that your problem was like those other
posts. Sorry.

TrevorC wrote:

Thank for the response. The button was created through the Control Toolbox
and Visual Basic. Once the macro is activated the button disappears and you
have to close the sheet and reopen to reset it. The code I have is as
follows:

Private Sub CommandButton1_Click()
CommandButton1.Visible = False
Worksheets("Sheet1").Range("G60").ClearContents

End Sub

Is it possible to get the button to stay?

"Dave Peterson" wrote:

Make sure your zoom is set to 100%.

And you may find that the buttons from the Forms toolbar behave nicer. (Yep,
they have a lot fewer features, too.)

TrevorC wrote:

I have a command button in place to clear certain cells when it is pressed.
Everytime it is pressed the button disappears and won't come back. How do I
keep the button active and visible after it is pressed?
Thanks,
Trevor

--

Dave Peterson


--

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
Text box disappears Suenapky Charts and Charting in Excel 0 December 8th 05 06:35 PM
Textbox disappears from Excel paste into PowerPoint NickSteel Charts and Charting in Excel 0 December 6th 05 05:17 PM
Color Palette, color disappears Emil Excel Discussion (Misc queries) 3 November 29th 05 05:07 AM
Area chart Disappears ASU Charts and Charting in Excel 1 August 24th 05 01:47 PM
Second option button disappears when I make another column Monique Excel Worksheet Functions 0 March 9th 05 09:57 PM


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