Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default macro to copy and paste cells

I need a macro to copy a cell's formula, then paste that
formula into a range of cells. This range would be on a
hidden sheet different than the one that the user would
see on the screen. I could use some help with the syntax
for getting this to work. For instance:

The user is on sheet1.
They run macro.
Formula from cell A1 on sheet2 is copied and pasted into
the range A2:A900 on sheet2.

Any help would be appreciated.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 493
Default macro to copy and paste cells

One way:

Public Sub FillDown()
With Sheets("Sheet2").Range("A1")
.AutoFill Destination:=.Resize(900, 1)
End With
End Sub


In article ,
"Tim" wrote:

I need a macro to copy a cell's formula, then paste that
formula into a range of cells. This range would be on a
hidden sheet different than the one that the user would
see on the screen. I could use some help with the syntax
for getting this to work. For instance:

The user is on sheet1.
They run macro.
Formula from cell A1 on sheet2 is copied and pasted into
the range A2:A900 on sheet2.

Any help would be appreciated.

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 and paste versus copy and insert copied cells Alana New Users to Excel 1 September 28th 07 08:58 PM
Macro should copy & paste to various cells, but won't. MacroMike Excel Discussion (Misc queries) 6 September 11th 07 09:14 AM
Macro - Copy and Paste repeatedly skipping cells [email protected] Excel Discussion (Misc queries) 5 January 6th 07 11:22 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


All times are GMT +1. The time now is 02:10 AM.

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"