ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   How to copy Range and Paste as Values (from hidden sheet) (https://www.excelbanter.com/excel-programming/424867-how-copy-range-paste-values-hidden-sheet.html)

Tom Joseph

How to copy Range and Paste as Values (from hidden sheet)
 
I am using the following to copy from a hidden sheet and paste to another
sheet.

Worksheets("Outliers_1").Cells.Copy Worksheets("Outliers").Range("A1")

I would like to paste just the values. The destination sheet is not hidden,
if that matters.
Can someone please tell me what addtional code I need to add to acomplish
this?

Thanks,

Tom





Hong Quach

How to copy Range and Paste as Values (from hidden sheet)
 
Hi Tom,

This should do the paste by value for you.

Worksheets("Outliers_1").Cells.Copy
Worksheets("Outliers").Range("A1").PasteSpecial Paste:=xlPasteValues

Hong Quach


"Tom Joseph" wrote:

I am using the following to copy from a hidden sheet and paste to another
sheet.

Worksheets("Outliers_1").Cells.Copy Worksheets("Outliers").Range("A1")

I would like to paste just the values. The destination sheet is not hidden,
if that matters.
Can someone please tell me what addtional code I need to add to acomplish
this?

Thanks,

Tom





Tom Joseph

How to copy Range and Paste as Values (from hidden sheet)
 
Thanks. I appreciate the help.

"Hong Quach" wrote:

Hi Tom,

This should do the paste by value for you.

Worksheets("Outliers_1").Cells.Copy
Worksheets("Outliers").Range("A1").PasteSpecial Paste:=xlPasteValues

Hong Quach


"Tom Joseph" wrote:

I am using the following to copy from a hidden sheet and paste to another
sheet.

Worksheets("Outliers_1").Cells.Copy Worksheets("Outliers").Range("A1")

I would like to paste just the values. The destination sheet is not hidden,
if that matters.
Can someone please tell me what addtional code I need to add to acomplish
this?

Thanks,

Tom






All times are GMT +1. The time now is 10:40 AM.

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