Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 26
Default Copy paste a formula in multiple cells

Hi
I wanted to copy and paste a formula in 500 different cells . I dont want to
manually select the 500 different cells.

How can i copy paste the formula
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 303
Default Copy paste a formula in multiple cells

I assume that you do not want to manually select each individual cell

copy the cell with the formula
highlight the 500 cells
if the cells are not in one block highlight a block hold <cntrl button and
highlight the next block etc...

right click and select "paste"

--
Greetings from New Zealand
Bill K

"vijaya" wrote in message
...
Hi
I wanted to copy and paste a formula in 500 different cells . I dont want
to
manually select the 500 different cells.

How can i copy paste the formula



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 923
Default Copy paste a formula in multiple cells


A1 contains formula and it is copied to Range B1 to B500, change references
as required.

Range("A1").Copy Destination:=Range("B1:B500")


--
Cheers
Nigel



"vijaya" wrote in message
...
Hi
I wanted to copy and paste a formula in 500 different cells . I dont want

to
manually select the 500 different cells.

How can i copy paste the formula



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Copy paste a formula in multiple cells


Nigel,
I have a similar need but the Copy destination needs to be a dynami
range. Could I use your code if I made the dynamic range a named range
ie Copy Destination:=Range("SomeNamedRange") and would it keep up wit
the changing size of the Range?

Thanks for any help

--
Case

-----------------------------------------------------------------------
Casey's Profile: http://www.excelforum.com/member.php...nfo&userid=454
View this thread: http://www.excelforum.com/showthread.php?threadid=48198

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 26
Default Copy paste a formula in multiple cells

I dont have consecutive cells ,I have cells like G3, G6, G9... uptil G500 or so
How should I copy paste the formula

"vijaya" wrote:

Hi
I wanted to copy and paste a formula in 500 different cells . I dont want to
manually select the 500 different cells.

How can i copy paste the formula



  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 923
Default Copy paste a formula in multiple cells

Yes, this will work, but of course the code will need to be run if the
extent of myRange is changed, so where ever your range gets changed you will
need to run this code.......

Range("A1").Copy Destination:=Range("myRange")


--
Cheers
Nigel



"Casey" wrote in message
...

Nigel,
I have a similar need but the Copy destination needs to be a dynamic
range. Could I use your code if I made the dynamic range a named range?
ie Copy Destination:=Range("SomeNamedRange") and would it keep up with
the changing size of the Range?

Thanks for any help.


--
Casey


------------------------------------------------------------------------
Casey's Profile:

http://www.excelforum.com/member.php...fo&userid=4545
View this thread: http://www.excelforum.com/showthread...hreadid=481988



  #7   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 923
Default Copy paste a formula in multiple cells

You can still use this method, in advance define your named range by
selecting all cells using either code or from the keyboard ctrl key then
Insert-Name-Define from the menu, add a name for the range and press Add.
You can then copy the formula to this named range.........

Range("A1").Copy Destination:=Range("mixedRange")

--
Cheers
Nigel



"vijaya" wrote in message
...
I dont have consecutive cells ,I have cells like G3, G6, G9... uptil G500

or so
How should I copy paste the formula

"vijaya" wrote:

Hi
I wanted to copy and paste a formula in 500 different cells . I dont

want to
manually select the 500 different cells.

How can i copy paste the formula



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
Trying to copy and paste line of text into multiple cells .Net Sports Excel Discussion (Misc queries) 1 October 21st 08 02:10 AM
how copy formula and only paste into 20,000 cells dlb1228 Excel Discussion (Misc queries) 1 February 28th 07 09:30 PM
macro copy/paste data from multiple cells to multiple cells Diana Excel Discussion (Misc queries) 0 July 10th 06 09:24 PM
Copy/Paste how to avoid the copy of formula cells w/o calc values Dennis Excel Discussion (Misc queries) 10 March 2nd 06 10:47 PM
How to copy and paste same formula in multiple cells? Amanda Excel Worksheet Functions 1 June 30th 05 04:16 PM


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