Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
paste code
This code has worked good for me in the past:
Dim rng As Range Set rng = ActiveSheet.AutoFilter.Range rng.Copy Destination:=Worksheets("Stepdown").Range("A1") However, it doesn't copy the formulas in the range to the destination as formulas but converst them to text. How can I modify my code so that it copies all the formulas, too? |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
paste code
You could paste the formulas in a separate step:
Dim ws As Worksheet Set ws = Worksheets("Stepdown") Dim rng As Range Set rng = ActiveSheet.AutoFilter.Range rng.Copy Destination:=ws.Range("A1") rng.Copy ws.Activate ws.Range("A1").PasteSpecial Paste:=xlPasteFormulas scrabtree23 wrote: This code has worked good for me in the past: Dim rng As Range Set rng = ActiveSheet.AutoFilter.Range rng.Copy Destination:=Worksheets("Stepdown").Range("A1") However, it doesn't copy the formulas in the range to the destination as formulas but converst them to text. How can I modify my code so that it copies all the formulas, too? -- Debra Dalgleish Excel FAQ, Tips & Book List http://www.contextures.com/tiptech.html |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
copy and paste using vb code | Excel Discussion (Misc queries) | |||
(Cut - Paste in Excel )code in vc++ | New Users to Excel | |||
Paste Code | Excel Programming | |||
Where do I paste this Code? | Excel Programming | |||
Need Help with Code - Copy & Paste | Excel Programming |