ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Keep Destination Format (https://www.excelbanter.com/excel-discussion-misc-queries/163234-keep-destination-format.html)

SteveT

Keep Destination Format
 
Hello Wise ones,

I have multi-user workbook in which one sheet has ref #
that user can past in 2nd sheet to pull various lookup data from 3rd hidden
sheet.

it is mostly cosmetic ( pet peeve ) that user doesn't past values only.

is there a macro / way to only paste values and keep dest format in
destination cell?

border / font / color all being effected.

thanks , Steven - Dallas


Billy Liddel

Keep Destination Format
 
Steve

Try something like this

mydate.Copy
Range(Cells(36, 3), Cells(nr - 9 + 36, 3)).PasteSpecial
xlPasteValuesAndNumberFormats

Peter

"SteveT" wrote:

Hello Wise ones,

I have multi-user workbook in which one sheet has ref #
that user can past in 2nd sheet to pull various lookup data from 3rd hidden
sheet.

it is mostly cosmetic ( pet peeve ) that user doesn't past values only.

is there a macro / way to only paste values and keep dest format in
destination cell?

border / font / color all being effected.

thanks , Steven - Dallas


SteveT

Keep Destination Format
 
Billy, thanks for response but I'm looking for solution to keep destination
format when action taken by user.

The paste action automatically default to paste.value regardless what chosen
by user ( in this specific destionation cell ). BR, Steven



"Billy Liddel" wrote:

Steve

Try something like this

mydate.Copy
Range(Cells(36, 3), Cells(nr - 9 + 36, 3)).PasteSpecial
xlPasteValuesAndNumberFormats

Peter

"SteveT" wrote:

Hello Wise ones,

I have multi-user workbook in which one sheet has ref #
that user can past in 2nd sheet to pull various lookup data from 3rd hidden
sheet.

it is mostly cosmetic ( pet peeve ) that user doesn't past values only.

is there a macro / way to only paste values and keep dest format in
destination cell?

border / font / color all being effected.

thanks , Steven - Dallas



All times are GMT +1. The time now is 12:46 PM.

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