View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
Bernie Deitrick[_2_] Bernie Deitrick[_2_] is offline
external usenet poster
 
Posts: 176
Default Copying Formula's

Mark,

Worksheets("Sheet3").Range("2:2").Copy _
Worksheets("Sheet3").Range("3:" & _
Worksheets("Sheet2").Range("A65536").End(xlUp)(2). Row)

HTH,
Bernie
MS Excel MVP

"Mark" wrote in message
om...
Using CopyFromRecordset, my VB code copies data to "Sheet2" of a
spreadsheet.

"Sheet3" contains formula's that utilize the data in "Sheet2".

The number of records in "Sheet2" vary (one time there may be 100

and
the next time there may be 200).

The cells on "Sheet3, row 2" contain the formulas corresponding to
"Sheet2, row 2".

How can I get VB to copy the "Sheet3's" formula's down from row 2 to
the last row corresponding to the block of data in "Sheet2"?

Thanks for any suggestions.

Mark