View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
[email protected] kjamison@travelers.com is offline
external usenet poster
 
Posts: 7
Default Creating a procedure using VBA Code

I am using an Excel/VBA application to read SQL databases - then
create a pivot table using that data and put it on a new workbook.

Now I am trying to programmatically add a command button to a sheet on
that new workbook and put code behind it (meaning adding a SUB
procedure to the workbook as well, that is executed by a Click event
on the new command button).

I have the button added and renamed - now I am trying to figure out
how to add a Sub Procedure and then the Click event on that command
button.

Any suggestions??