Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
TJ
 
Posts: n/a
Default Macro or Custom button to fill in the same formula

We use excell to do all of our quotes and we have a formula we use every
time. I am looking for a way to create a button or macro or some one key
option to fill in the following formula to a selected row, any suggestions?

Column
A B C D E F

(EMPTY) (EMPTY) (FORMULA) (FORMULA) (FORM) (EMPTY)

Thanks!
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Jim Cone
 
Posts: n/a
Default Macro or Custom button to fill in the same formula

Sub TheCatsMeow()
Dim varArray As Variant
varArray = _
Array(vbNullString, vbNullString, "=A1+B1", "=B2+C2", "=C3+D3", vbNullString)
ActiveCell.Resize(1, 6).Formula = varArray
End Sub

Jim Cone
San Francisco, USA
http://www.realezsites.com/bus/primitivesoftware


"TJ" wrote in message
...
We use excell to do all of our quotes and we have a formula we use every
time. I am looking for a way to create a button or macro or some one key
option to fill in the following formula to a selected row, any suggestions?

Column
A B C D E F

(EMPTY) (EMPTY) (FORMULA) (FORMULA) (FORM) (EMPTY)

Thanks!
  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
TJ
 
Posts: n/a
Default Macro or Custom button to fill in the same formula

How do I create this code?

"Jim Cone" wrote:

Sub TheCatsMeow()
Dim varArray As Variant
varArray = _
Array(vbNullString, vbNullString, "=A1+B1", "=B2+C2", "=C3+D3", vbNullString)
ActiveCell.Resize(1, 6).Formula = varArray
End Sub

Jim Cone
San Francisco, USA
http://www.realezsites.com/bus/primitivesoftware


"TJ" wrote in message
...
We use excell to do all of our quotes and we have a formula we use every
time. I am looking for a way to create a button or macro or some one key
option to fill in the following formula to a selected row, any suggestions?

Column
A B C D E F

(EMPTY) (EMPTY) (FORMULA) (FORMULA) (FORM) (EMPTY)

Thanks!

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
TJ
 
Posts: n/a
Default Macro or Custom button to fill in the same formula

how do I create this string of code?

"Jim Cone" wrote:

Sub TheCatsMeow()
Dim varArray As Variant
varArray = _
Array(vbNullString, vbNullString, "=A1+B1", "=B2+C2", "=C3+D3", vbNullString)
ActiveCell.Resize(1, 6).Formula = varArray
End Sub

Jim Cone
San Francisco, USA
http://www.realezsites.com/bus/primitivesoftware


"TJ" wrote in message
...
We use excell to do all of our quotes and we have a formula we use every
time. I am looking for a way to create a button or macro or some one key
option to fill in the following formula to a selected row, any suggestions?

Column
A B C D E F

(EMPTY) (EMPTY) (FORMULA) (FORMULA) (FORM) (EMPTY)

Thanks!

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Jim Cone
 
Posts: n/a
Default Macro or Custom button to fill in the same formula

David McRitchie shows how here...
http://www.mvps.org/dmcritchie/excel/getstarted.htm

Jim Cone
San Francisco, USA
http://www.realezsites.com/bus/primitivesoftware



"TJ"
wrote in message
how do I create this string of code?

"Jim Cone" wrote:
Sub TheCatsMeow()
Dim varArray As Variant
varArray = _
Array(vbNullString, vbNullString, "=A1+B1", "=B2+C2", "=C3+D3", vbNullString)
ActiveCell.Resize(1, 6).Formula = varArray
End Sub
Jim Cone
San Francisco, USA
http://www.realezsites.com/bus/primitivesoftware





"TJ" wrote in message
...
We use excell to do all of our quotes and we have a formula we use every
time. I am looking for a way to create a button or macro or some one key
option to fill in the following formula to a selected row, any suggestions?
Column
A B C D E F
(EMPTY) (EMPTY) (FORMULA) (FORMULA) (FORM) (EMPTY)

Thanks!

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
Relative cells in macro - and pasting a formula too! Excel Discussion (Misc queries) 3 February 23rd 06 02:46 PM
Match then lookup Tenacity Excel Worksheet Functions 9 December 3rd 05 05:30 AM
Formula Problem - interrupted by #VALUE! in other cells!? Ted Excel Worksheet Functions 17 November 25th 05 05:18 PM
Macro to simply bring up the Find dialogue box?? marika1981 Excel Discussion (Misc queries) 14 January 14th 05 10:47 PM
Macro Formula revision? Mark Excel Worksheet Functions 1 November 28th 04 01:43 AM


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