Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
multiple copy / paste on locked sheet
I have a sheet that has multiple cells that need to be copied (say A1, A3,
A5) from sheet1. These three cells need to be pasted on sheet2, in the same order but offset by 100 lines (A101, A103, A105) and this sheet is locked but the target cells are unlocked. So far I can copy but I don't know how to paste? Sub Macro1() Sheets("Sheet1").Select Range("A1,A3,A5").Select Selection.Copy Sheets("Sheet2").Select ' problem starts here! Range("A101,A103,A105").Select ??????.Paste End Sub Regards MD |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
multiple copy / paste on locked sheet
Sub Macro1()
Sheet("Sheet2").Range("A101,A103,A105").Value = Sheet("Sheet1").Range("A1,A3,A5").Value End Sub Or Sheet("Sheet1").Range("A1,A3,A5").Copy Destination: = Sheet("Sheet2").Range("A101,A103,A105") Mike F "MD" wrote in message ... I have a sheet that has multiple cells that need to be copied (say A1, A3, A5) from sheet1. These three cells need to be pasted on sheet2, in the same order but offset by 100 lines (A101, A103, A105) and this sheet is locked but the target cells are unlocked. So far I can copy but I don't know how to paste? Sub Macro1() Sheets("Sheet1").Select Range("A1,A3,A5").Select Selection.Copy Sheets("Sheet2").Select ' problem starts here! Range("A101,A103,A105").Select ??????.Paste End Sub Regards MD |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Copy and paste a formula in a locked cell | Excel Discussion (Misc queries) | |||
Copy from one Sheet and paste on another sheet based on condition | Excel Discussion (Misc queries) | |||
Locked Cells and Copy/Paste | Excel Worksheet Functions | |||
paste locked cells and unlocked cells in protected sheet | Excel Worksheet Functions | |||
Active Cell Copy And Paste Sheet to Sheet | New Users to Excel |