Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Hit a button with VBA code

Hi,

I'm writing VBA code that is copying data from one file to another.
The destination file has 2 buttons (linked to macros) that I need to
select with my code. I cannot see the macro code for these 2 buttons,
and I think both buttons are using one macro. I think the macro
decides what to do based on the button text.

So, basically, I'm trying to figure out how to select those buttons
with my code. Any help/suggestions??

  #2   Report Post  
Posted to microsoft.public.excel.programming
Udo Udo is offline
external usenet poster
 
Posts: 48
Default Hit a button with VBA code

Hi,

if i knew which macro would be started by the button, I would call that
macro in my code like you call any other sub.

Udo

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Hit a button with VBA code

The thing is, there is only one macro present in that workbook, and
there are a total of 2 buttons in that worksheet. And, the actual
macro doesn't do what the other 2 do. I think they have hidden their
macro.

Regardless, there are 2 buttons I'll need to choose, so I have to be
able to choose a button.

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
VBA code behind command button [email protected] Excel Worksheet Functions 1 March 22nd 06 08:13 PM
How to make a button VBA code reference other VBA code subroutines??? gunman[_9_] Excel Programming 4 September 27th 05 01:01 AM
Add a Button with code Alan Smykowski Excel Programming 4 March 16th 05 03:33 AM
Button, but no code Aaron Fude Excel Programming 3 May 16th 04 05:32 PM
Button, but now code Aaron Fude Excel Programming 2 May 16th 04 10:35 AM


All times are GMT +1. The time now is 11:26 PM.

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"