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

I have the following formulas:
cell h3: =H3+SUMIF(G$3:$H3,"<x",E$3:$F3)
cell i3: =H2-E3

Assume my current cursor position is cell i53. I would
like a macro that would copy the above formulas down
columns H and I to the row above the active cell (row 52).

Any Ideas? Thanks,

Matt
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 493
Default Copy Formula Macro

You do know you've got circular references, right?

This isn't very adaptable, but it will do what you specified:

Public Sub FillDownH3I3Macro()
With Range("H3:I3")
.AutoFill Destination:=.Resize(ActiveCell.Row - 3, 2)
End With
End Sub


In article ,
"ME Pike" wrote:

I have the following formulas:
cell h3: =H3+SUMIF(G$3:$H3,"<x",E$3:$F3)
cell i3: =H2-E3

Assume my current cursor position is cell i53. I would
like a macro that would copy the above formulas down
columns H and I to the row above the active cell (row 52).

Any Ideas? Thanks,

Matt

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Copy Formula Macro

Thanks, it worked perfectly.
-----Original Message-----
You do know you've got circular references, right?

This isn't very adaptable, but it will do what you

specified:

Public Sub FillDownH3I3Macro()
With Range("H3:I3")
.AutoFill Destination:=.Resize

(ActiveCell.Row - 3, 2)
End With
End Sub


In article ,
"ME Pike" wrote:

I have the following formulas:
cell h3: =H3+SUMIF(G$3:$H3,"<x",E$3:$F3)
cell i3: =H2-E3

Assume my current cursor position is cell i53. I

would
like a macro that would copy the above formulas down
columns H and I to the row above the active cell (row

52).

Any Ideas? Thanks,

Matt

.

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
Copy a Formula in a Macro KennyD Excel Discussion (Misc queries) 3 March 7th 10 01:04 AM
Copy down formula macro Eva Excel Worksheet Functions 3 December 9th 09 10:33 PM
Use Macro to Copy Formula from one Workbook to another bevchapman Excel Discussion (Misc queries) 4 October 7th 09 03:50 PM
Formula/ Macro that will copy and paste Randy Excel Worksheet Functions 1 August 12th 08 03:58 PM
Copy a formula down in a macro Sal Excel Discussion (Misc queries) 3 June 5th 06 02:52 AM


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