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

I have a worksheet, we'll say Sheet 1, that does a web query. I have two
command buttons setup that turn the query on/off.

On either the workbook Open or Beforeclose, I want to make one of the
buttons visible = false.

When I put the code in ThisWorkbook module, I don't seem to know how to
reference the button (or maybe the sheet?)

I get an object required error as soon as it gets to my Cmd_Stop.Visible =
False line.
How do I properly point to it?


Thanks


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default Reference Command Button

Check your earlier post.

CR wrote:

I have a worksheet, we'll say Sheet 1, that does a web query. I have two
command buttons setup that turn the query on/off.

On either the workbook Open or Beforeclose, I want to make one of the
buttons visible = false.

When I put the code in ThisWorkbook module, I don't seem to know how to
reference the button (or maybe the sheet?)

I get an object required error as soon as it gets to my Cmd_Stop.Visible =
False line.
How do I properly point to it?

Thanks


--

Dave Peterson
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 50
Default Reference Command Button

Sorry about the double post.
It was my first post using Giganews. When I hit send on the first one I got
an error saying my password was wrong and it couldn't send. I retyped my
password and recived no error the second time.
CR


"Dave Peterson" wrote in message
...
Check your earlier post.

CR wrote:

I have a worksheet, we'll say Sheet 1, that does a web query. I have two
command buttons setup that turn the query on/off.

On either the workbook Open or Beforeclose, I want to make one of the
buttons visible = false.

When I put the code in ThisWorkbook module, I don't seem to know how to
reference the button (or maybe the sheet?)

I get an object required error as soon as it gets to my Cmd_Stop.Visible
=
False line.
How do I properly point to it?

Thanks


--

Dave Peterson



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

Not a problem.

But my reply serves a couple of purposes. First, it tells you that you do have
a response and second, it tells others that you have a response.

CR wrote:

Sorry about the double post.
It was my first post using Giganews. When I hit send on the first one I got
an error saying my password was wrong and it couldn't send. I retyped my
password and recived no error the second time.
CR

"Dave Peterson" wrote in message
...
Check your earlier post.

CR wrote:

I have a worksheet, we'll say Sheet 1, that does a web query. I have two
command buttons setup that turn the query on/off.

On either the workbook Open or Beforeclose, I want to make one of the
buttons visible = false.

When I put the code in ThisWorkbook module, I don't seem to know how to
reference the button (or maybe the sheet?)

I get an object required error as soon as it gets to my Cmd_Stop.Visible
=
False line.
How do I properly point to it?

Thanks


--

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
print command from command button in userform causes double chart Mike Jamesson Excel Programming 5 August 11th 09 03:42 AM
Deselect Command Button by Selecting another Command Button gmcnaugh[_2_] Excel Programming 3 September 2nd 08 05:59 PM
Command button calculation from Userform and Cell reference SDH Excel Programming 6 April 18th 07 08:59 AM
How to reference a vba chkbox from a vba command button on excel? Sterl Excel Programming 4 August 17th 06 01:35 AM
VB's Command Button vs Form's Command Button Ronald Dodge Excel Programming 3 May 24th 06 02:23 PM


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