Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 12
Default Copy value only

Hi All,

I have written a macro and attached same to a control button which will
simply copy the value in WB1, open WB2 and paste the value.

The value from WB1 is contained in merged cells. Could someone assist me
with code that will copy and paste only the value contained in the merged
cells.

--
Thanks

Ron
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 63
Default Copy value only

Hi Ron,

I presume that it is currently copying the merged cell format too?

If this is what you are trying to avoid then try using Paste Special (I have
assumed here that you have already selected the WB1 data and copied it):

Range("A1").PasteSpecial Paste:=xlPasteValues

If this is not what you are looking for then please explain the problems you
are having with your code in detail.

Hope this helps,

Sean.



--
(please remember to click yes if replies you receive are helpful to you)


"ron mann" wrote:

Hi All,

I have written a macro and attached same to a control button which will
simply copy the value in WB1, open WB2 and paste the value.

The value from WB1 is contained in merged cells. Could someone assist me
with code that will copy and paste only the value contained in the merged
cells.

--
Thanks

Ron

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 12
Default Copy value only

Hi Sean,

Thanks, that helps a lot. I am only just starting to write code and your
assistance is greatly appreciated.
--
Thanks

Ron


"SeanC UK" wrote:

Hi Ron,

I presume that it is currently copying the merged cell format too?

If this is what you are trying to avoid then try using Paste Special (I have
assumed here that you have already selected the WB1 data and copied it):

Range("A1").PasteSpecial Paste:=xlPasteValues

If this is not what you are looking for then please explain the problems you
are having with your code in detail.

Hope this helps,

Sean.



--
(please remember to click yes if replies you receive are helpful to you)


"ron mann" wrote:

Hi All,

I have written a macro and attached same to a control button which will
simply copy the value in WB1, open WB2 and paste the value.

The value from WB1 is contained in merged cells. Could someone assist me
with code that will copy and paste only the value contained in the merged
cells.

--
Thanks

Ron

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Copy/Paste how to avoid the copy of formula cells w/o calc values Dennis Excel Discussion (Misc queries) 10 March 2nd 06 10:47 PM
copy formulas from a contiguous range to a safe place and copy them back later Lucas Budlong Excel Programming 2 February 22nd 06 08:26 PM
EXCEL FILE a copy/a copy/a copy ....filename ve New Users to Excel 1 September 29th 05 09:12 PM
Code to copy range vs Copy Entire Worksheet - can't figure it out Mike Taylor Excel Programming 1 April 15th 04 08:34 PM
How copy format, font, color and border without copy/paste? Michel[_3_] Excel Programming 1 November 5th 03 04:43 PM


All times are GMT +1. The time now is 02:40 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"