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

I am in need of 2 macros that will accomplish the following:

MACRO #1:
From the active column I need to automatically copy over a set of

formulas from the column to the left of the active column.
+ The row numbers where the source cell of the formula to be copied
don't change.
+ The columns need to be flexible based on the active cell (1 column to
the left of the active cell should be copied 1 column over).
+ I need to be able to change the active cell / column and have the
formula operate on the column to the left.
+ Example: Active cell is B1. Copy formulas in cells A5, A9 and A15
over to cells B5, B9 and B15. If I move active cell to C1, need to copy
formulas from column B to C.

MACRO #2:
Perform the same step as macro 1 PLUS offset the external row
references in this formula by 7 (column stays the same)

Example:
Cell A20 in Sheet 1 has this formula: =sum(sheet2$B10:$B17)
Active cell is B1
Macro should copy formula from A20 to B20 AND change formula to:
=sum(sheet2$B18:$B24)

Thanks!

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7
Default Macros to copy formulas

anyone?

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4,391
Default Macros to copy formulas

Range("a1").copy range("a2") ?
..HasFomula, .Formula ?

NickHK

wrote in message
oups.com...
anyone?



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
automatically copy formulas down columns or copy formulas all the HowlingBlue Excel Worksheet Functions 1 March 16th 07 11:11 PM
copy formulas from a contiguous range to a safe place and copy them back later Lucas Budlong Excel Programming 2 February 22nd 06 08:26 PM
Macros within formulas praveen_khm[_5_] Excel Programming 3 January 16th 06 02:18 PM
weird saving of a document with macros resulting with macros being transfered to the copy alfonso gonzales Excel Programming 0 December 12th 04 09:19 PM
Range COPY function - how to copy VALUES and not formulas James Cooke Excel Programming 1 August 21st 03 07:04 PM


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