Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3
Default Macros AND Buttons

If anyone has been through this same problem please help. I have
created two macros and corresponding buttons on the toolbar, but when i
send the file the toolbar buttons do not stay and i do not know why it
would be great to get some help with this. Also is it possible to
create those buttons for the macros and put them into cells?


And if anyone has dealt with this problem before or knows how to
correct it could you please walk me through the process as i am not
very experienced with this. Thanks so much

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 9
Default Macros AND Buttons

qasem6,

I found this on the net. hope it helps.

"Sharing macros with others

When you distribute databases, worksheets, presentations, and documents
containing macros to others, they can start running the attached macros
immediately. You can also distribute individual modules containing macros,
separate from Office documents and projects, to other Office users.
To distribute individual modules separate from Office documents and projects

1. Right-click the module containing your macro in the Project window.
2. Click Export File and follow the directions to save the exported code to
a stand-alone file.

Note that the code in this file will not run on its own; it must be imported
into an existing Office document or project, depending on the Office program.
To import a code file

1. On the File menu in the Visual Basic Editor, click Import File.
2. Follow the directions to bring the file's code into your document or
project."

" wrote:

If anyone has been through this same problem please help. I have
created two macros and corresponding buttons on the toolbar, but when i
send the file the toolbar buttons do not stay and i do not know why it
would be great to get some help with this. Also is it possible to
create those buttons for the macros and put them into cells?


And if anyone has dealt with this problem before or knows how to
correct it could you please walk me through the process as i am not
very experienced with this. Thanks so much


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,203
Default Macros AND Buttons

You can't create the buttons, as in toolbar buttons, and put them into cells
on a sheet, but you have other options to do that kind of thing.

You can use View | Toolbars | Forms to open up the forms toolbox and drag a
'command button' from it onto the worksheet. You can then right-click it and
assign one of your macros to it to be performed when someone clicks on it.

You can get more fashionable by using the Text Box control from the Drawing
toolbar (View | Toolbars | Drawing) and putting a text box on your worksheet
and assigning a macro to it - again, use Right-click on it to bring up the
list of options, which includes Assign Macro. You can also dress these up by
coloring them.

Make sure that your macros are included in "This Workbook" when you record
them. At the other end, inform the user that the workbook contains macros
and that their Macro security must be turned down to at least Medium for them
to function. I recommend no lower than Medium, because setting Macro
security to Low is the same as turning it off. With Medium, they'll get an
alert and can choose the [Enable] button to allow your code to be executed.

Be warned, some anti-virus applications will also guard against VBA code
execution. My personal A-V of choice, Kaspersky, is one of those, so those
settings have to be dealt with also.

" wrote:

If anyone has been through this same problem please help. I have
created two macros and corresponding buttons on the toolbar, but when i
send the file the toolbar buttons do not stay and i do not know why it
would be great to get some help with this. Also is it possible to
create those buttons for the macros and put them into cells?


And if anyone has dealt with this problem before or knows how to
correct it could you please walk me through the process as i am not
very experienced with this. Thanks so much


  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 138
Default Macros AND Buttons

wrote in message
ups.com...
If anyone has been through this same problem please help. I have
created two macros and corresponding buttons on the toolbar, but when i
send the file the toolbar buttons do not stay and i do not know why it
would be great to get some help with this. Also is it possible to
create those buttons for the macros and put them into cells?


And if anyone has dealt with this problem before or knows how to
correct it could you please walk me through the process as i am not
very experienced with this. Thanks so much



Personal opinion: the concept of custom buttons for the toolbar is badly
implemented. I had quite the opposite problem: Buttons are sent although
they should not (because the corresponding macros are local on my machine) .
I've given up on toolbar buttons.

Of course you can place buttons on the sheet (however not the ones you
created for the toolbar).

1) Outdated and restricted in several ways, but most simple: The button of
the "Forms" toolbar.
2) More versatile, but requiring code for the OnClick event of this object:
The button of the "Control Toolbox" toolbar.

Cheers,

Joerg


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
Macros And Buttons [email protected] Excel Discussion (Misc queries) 4 August 8th 06 10:37 PM
Sharing macros and buttons that accompany the macro JDub Excel Discussion (Misc queries) 5 November 17th 05 10:16 PM
Buttons and macros? Joe Excel Discussion (Misc queries) 3 October 7th 05 02:34 AM
excel 2003 - macros & buttons mikey New Users to Excel 2 May 19th 05 11:51 AM
How to copy a workbook so the buttons run the macros? - Excel Discussion (Misc queries) 4 May 15th 05 11:24 PM


All times are GMT +1. The time now is 02:04 PM.

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"