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

Hi! I am writing a macro that I want to attach to an excel-spreadsheet. The
visible part of the macro consists of a button and some text in some cells.
How do I write the code so that that the macro is "attached" to the
spreadsheet i.e. when you open the workbook you will see the button and the
text. I am a programming noivce so please write easy help!

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 84
Default Display button

Hi Jenni,

You can create a button from the Forms menu (click ViewToolbarsForms then
click on the button icon and move your cursor to the sheet and click and drag
to size the button). When you place the button on your spreadsheet, you'll
be prompted to attach a macro which you'll be able to select from a list of
macros you've already created. If a button already exists on your
spreadsheet and you'd like to attach a macro to it (or change the currently
attached macro), right-click the button, then select "Assign macro..." and
choose the macro you'd like from the list.

"Jenni_Sweden" wrote:

Hi! I am writing a macro that I want to attach to an excel-spreadsheet. The
visible part of the macro consists of a button and some text in some cells.
How do I write the code so that that the macro is "attached" to the
spreadsheet i.e. when you open the workbook you will see the button and the
text. I am a programming noivce so please write easy help!

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10
Default Display button

Thank you. However when choosing the button as you described it I cannot
insert it into the spreadsheet. The cursor becomes invisible when moved
outside the Forms menu. Any clue?
--
I am very thankful for any fast assistance!


"Paul Mathews" skrev:

Hi Jenni,

You can create a button from the Forms menu (click ViewToolbarsForms then
click on the button icon and move your cursor to the sheet and click and drag
to size the button). When you place the button on your spreadsheet, you'll
be prompted to attach a macro which you'll be able to select from a list of
macros you've already created. If a button already exists on your
spreadsheet and you'd like to attach a macro to it (or change the currently
attached macro), right-click the button, then select "Assign macro..." and
choose the macro you'd like from the list.

"Jenni_Sweden" wrote:

Hi! I am writing a macro that I want to attach to an excel-spreadsheet. The
visible part of the macro consists of a button and some text in some cells.
How do I write the code so that that the macro is "attached" to the
spreadsheet i.e. when you open the workbook you will see the button and the
text. I am a programming noivce so please write easy help!

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 84
Default Display button

Jenni, what should happen is that the cursor turns into a cross. That's
fine, move the cross to wherever you'd like the button on your spreadsheet,
then left-click to locate the button to the sheet (don't let go off the
left-click button) and then you'll size the button by keeping your left-click
button pressed and dragging the cursor to the right and down (you'll see the
outline of the button as you do this). When the button is roughly as big as
you want, let go of your left-clicker. The button will appear and then
you'll be prompted to assign a macro to it.

"Jenni_Sweden" wrote:

Thank you. However when choosing the button as you described it I cannot
insert it into the spreadsheet. The cursor becomes invisible when moved
outside the Forms menu. Any clue?
--
I am very thankful for any fast assistance!


"Paul Mathews" skrev:

Hi Jenni,

You can create a button from the Forms menu (click ViewToolbarsForms then
click on the button icon and move your cursor to the sheet and click and drag
to size the button). When you place the button on your spreadsheet, you'll
be prompted to attach a macro which you'll be able to select from a list of
macros you've already created. If a button already exists on your
spreadsheet and you'd like to attach a macro to it (or change the currently
attached macro), right-click the button, then select "Assign macro..." and
choose the macro you'd like from the list.

"Jenni_Sweden" wrote:

Hi! I am writing a macro that I want to attach to an excel-spreadsheet. The
visible part of the macro consists of a button and some text in some cells.
How do I write the code so that that the macro is "attached" to the
spreadsheet i.e. when you open the workbook you will see the button and the
text. I am a programming noivce so please write easy help!

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
The button on my tool bar won't display charlie Excel Discussion (Misc queries) 0 July 17th 08 05:02 PM
display set of records in a form with previous and next button jophy j via OfficeKB.com New Users to Excel 3 July 25th 05 12:42 PM
How to display set of record s on the forms using previous & next button jophy j via OfficeKB.com Excel Programming 0 July 21st 05 07:02 AM
button display Wazooli Excel Programming 1 March 21st 05 06:07 PM
Display toolbar icons on form button [email protected] Excel Programming 5 March 11th 05 09:03 AM


All times are GMT +1. The time now is 12:31 AM.

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"