Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
copy then paste to multiple ranges
Hi,
I use the code below to copy formulas to additional cells. However, i want to paste the copied formulas into multiple ranges instead of copy/ paste copy/paste etc. Can this be done? Range("A1").copy Range("B1:B10") I thought something like this but it doesnt work... Range("A1").copy Range("B1:B10"), Range("F12:F45") Any ideas? Kind regards, Matt |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
copy then paste to multiple ranges
try
Range("A1").copy Range("B1:B10,F12:F45") -- Don Guillett Microsoft MVP Excel SalesAid Software "MJKelly" wrote in message ... Hi, I use the code below to copy formulas to additional cells. However, i want to paste the copied formulas into multiple ranges instead of copy/ paste copy/paste etc. Can this be done? Range("A1").copy Range("B1:B10") I thought something like this but it doesnt work... Range("A1").copy Range("B1:B10"), Range("F12:F45") Any ideas? Kind regards, Matt |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
copy then paste to multiple ranges
see if this works for you:
myformula = Range("A1").Formula Range("B1:B10,F12:F45").Formula = myformula -- jb "MJKelly" wrote: Hi, I use the code below to copy formulas to additional cells. However, i want to paste the copied formulas into multiple ranges instead of copy/ paste copy/paste etc. Can this be done? Range("A1").copy Range("B1:B10") I thought something like this but it doesnt work... Range("A1").copy Range("B1:B10"), Range("F12:F45") Any ideas? Kind regards, Matt |
#4
Posted to microsoft.public.excel.programming
|
|||
|
|||
copy then paste to multiple ranges
this probably isn't what you want, but............. once you have it
copied, you can paste it multiple times........ '===================== Sub multiple_paste() ActiveSheet.Range("b2").Copy ActiveSheet.Range("b4").PasteSpecial xlPasteAll ActiveSheet.Range("b8").PasteSpecial xlPasteAll ActiveSheet.Range("b10").PasteSpecial xlPasteAll Application.CutCopyMode = False End Sub '====================== hope it helps! :) susan On Oct 15, 8:18*am, MJKelly wrote: Hi, I use the code below to copy formulas to additional cells. *However, i want to paste the copied formulas into multiple ranges instead of copy/ paste copy/paste etc. *Can this be done? Range("A1").copy Range("B1:B10") I thought something like this but it doesnt work... Range("A1").copy Range("B1:B10"), Range("F12:F45") Any ideas? Kind regards, Matt |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
How can I copy big ranges of cells without drag or copy/paste? | Excel Discussion (Misc queries) | |||
Copy & paste ranges from 1 wkbk to another | Excel Programming | |||
Copy and paste Named Ranges | Excel Programming | |||
Copy paste ranges from multiple sheets | Excel Programming | |||
Copy and Paste ranges between files | Excel Programming |