ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   How to use Object.Copy(Destination) method PasteSpecial(xlPasteVal (https://www.excelbanter.com/excel-programming/337382-how-use-object-copy-destination-method-pastespecial-xlpasteval.html)

RAP

How to use Object.Copy(Destination) method PasteSpecial(xlPasteVal
 
Hello, Folks
The following line in VB works fine, but it pastes the borders, etc...
assigned to the named EntryDate cell. Is there a way to ammend this line to
PasteSpecial (xlPasteValues) ?

Range("EntryDate").Copy shComments.Cells(iNextEmptyDateCell, "C")

Thanks,
Randy



Norman Jones

How to use Object.Copy(Destination) method PasteSpecial(xlPasteVal
 
Hi Randy,

Try:

Range("EntryDate").Copy
shComments.Cells(iNextEmptyDateCell, "C"). _
PasteSpecial Paste:=xlValues
Application.CutCopyMode = False


---
Regards,
Norman



"RAP" wrote in message
...
Hello, Folks
The following line in VB works fine, but it pastes the borders, etc...
assigned to the named EntryDate cell. Is there a way to ammend this line
to
PasteSpecial (xlPasteValues) ?

Range("EntryDate").Copy shComments.Cells(iNextEmptyDateCell, "C")

Thanks,
Randy






All times are GMT +1. The time now is 04:55 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com