LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default How to change multiple formulae by looping


Hi All,

How can can i loop the below formula through a range of cells?

each cell contains a formula be it =N$1*$G119 or =5*$G119

how can i loop a to change the formula to =N$18*0.05 or =5*0.05

the range is N3:W284

I think i just need to loop the folloing through the range but have ha
no joyu as yet

ActiveCell.FormulaR1C1 = "=R1C*0.05"

I have tried:
For each cell in Range("N3:W284")
ActiveCell.FormulaR1C1 = "=R1C*0.05"
Next Cell

but it changes all the cells to the same formula rather then keepin
the left handside of the formula as it is and just deleting an
changing the right handside to 0.05

I help please.

Thanks
Pau

--
paulu

http://www.frontlineuk.co
-----------------------------------------------------------------------
pauluk's Profile: http://www.excelforum.com/member.php...nfo&userid=520
View this thread: http://www.excelforum.com/showthread.php?threadid=50720

 
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
Looping Macros that change Dar Excel Discussion (Misc queries) 1 February 25th 10 10:09 PM
Change formulae easily? fak119 New Users to Excel 1 August 2nd 06 04:14 PM
Macro Help. Looping, code change. TheDPQ Excel Programming 1 January 30th 06 07:00 PM
Change to formulae Emma Hope Excel Worksheet Functions 3 September 5th 05 09:16 PM
change lots of formulae all at once - how? simon Excel Programming 3 March 16th 05 07:04 PM


All times are GMT +1. The time now is 05:05 PM.

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"