Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default Can I create a button for a formula?

I have a formula that I use several times a day in various workbooks. The
formula is always =(I2&" "&J2) written in Cell K2. I created a macro, but it
keeps tying to the workbook. I want to create a button that will automaticly
type this formula no matter the workbook I'm in. Is this possible?
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,117
Default Can I create a button for a formula?

yes. when you open the VBA editor to work on your macro, you'll see
two projects, the workbook you're in and another named PERSONAL.XLS.
(if you don't see personal.xls, record some simple macro & tell it you
want it to store in personal.xls, and it will create one. you can
always remove the recorded macro later.)

add a module to personal.xls. copy & paste the pertinent macro that
you already have to personal.xls's new module. now, out in excel,
right click in the toolbars and add a custom button (choose
"Customize", "Commands", "Macros", "Custom Button").
drag the custom button to where you want it on a toolbar. right click
the custom button & assign macro. choose the personal.xls version of
the macro.

now EXIT excel and save your personal.xls (it will ask you). when you
re-open, the button will be there & will run that macro anytime you
push it.
hope this helps.
:)
susan



On May 19, 3:35*pm, Kristi_ut
wrote:
I have a formula that I use several times a day in various workbooks. *The
formula is always =(I2&" "&J2) written in Cell K2. *I created a macro, but it
keeps tying to the workbook. *I want to create a button that will automaticly
type this formula no matter the workbook I'm in. *Is this possible?


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
Create a button stumakker Excel Discussion (Misc queries) 2 June 5th 07 12:11 PM
Button to create a new form ihatetheredskins Excel Worksheet Functions 1 May 3rd 07 07:43 PM
How do I create an option button? Regulator Excel Discussion (Misc queries) 2 July 5th 06 08:17 PM
Is it possible to create a button for a formula? ie. "CountA" wheresleo Excel Discussion (Misc queries) 0 January 30th 06 09:13 PM
how do i create a button within a spreadsheet Brian Excel Discussion (Misc queries) 1 July 13th 05 03:12 AM


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