paste special

  • Thread starter Thread starter carlos_ray86
  • Start date Start date
C

carlos_ray86

I'm trying to copy a cell and paste it back in the same cell just as
values...is this possible. I'm doing the following code:

ThisWorkbook.Worksheets("Shapes").Cells(1, 8).copy
ThisWorkbook.Worksheets("Shapes").Cells(1, 8).PasteSpecial
Paste:=xlPasteValues
 
This works:

Sub pastespecail()
With ThisWorkbook.Worksheets("Shapes").Cells(1, 8)
.Copy
.pastespecial Paste:=xlPasteValues
End With
End Sub
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top