C
Chip
I have written a procedure to use copy/paste special for several dozen cells
individually.
In two cases, the destination cell is merged so I unmerge before pasting
then remerge.
In one sub procedure it orks fine in another I get the error in the subject
line.
Here is a snippet of the code
If ActiveCell.Offset(0, 42) <> "" Then
ActiveCell.Offset(0, 42).Copy
Sheets("Application Increases").Select
Range("U8:AD8").MergeCells = False
Range("U8").Select
Selection.PasteSpecial Paste:=xlPasteValues
Range("U8:AD8").MergeCells = True
I have tried using activecell in place of selection and also tried adding a
line to set cutcopymode=false.
Any thoughts?
individually.
In two cases, the destination cell is merged so I unmerge before pasting
then remerge.
In one sub procedure it orks fine in another I get the error in the subject
line.
Here is a snippet of the code
If ActiveCell.Offset(0, 42) <> "" Then
ActiveCell.Offset(0, 42).Copy
Sheets("Application Increases").Select
Range("U8:AD8").MergeCells = False
Range("U8").Select
Selection.PasteSpecial Paste:=xlPasteValues
Range("U8:AD8").MergeCells = True
I have tried using activecell in place of selection and also tried adding a
line to set cutcopymode=false.
Any thoughts?