PC Review


Reply
Thread Tools Rate Thread

Copy value only

 
 
ron mann
Guest
Posts: n/a
 
      14th Oct 2008
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 With Quote
 
 
 
 
SeanC UK
Guest
Posts: n/a
 
      14th Oct 2008
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 With Quote
 
ron mann
Guest
Posts: n/a
 
      15th Oct 2008
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 With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
http://LongPathTool.com - find and delete/copy path too long filesfrom your hard drive or LAN Windows tool to copy or delete files and folderswith path too long or filename too long error. Just browse to the file andpress a button to copy or d Martin Krag Windows XP Internet Explorer 0 22nd Apr 2011 10:08 AM
http://LongPathTool.com - find and delete/copy path too long filesfrom your hard drive or LAN Windows tool to copy or delete files and folderswith path too long or filename too long error. Just browse to the file andpress a button to copy or d Martin Krag Windows XP Configuration 0 22nd Apr 2011 10:05 AM
Copy local users and groups, copy shares with security, copy homeuser folders usenet@sphere10.com Microsoft Windows 2000 Active Directory 1 17th Feb 2009 01:31 PM
Copy local users and groups, copy shares with security, copy homeuser folders usenet@sphere10.com Windows Vista General Discussion 2 17th Feb 2009 01:31 PM
EXCEL FILE a copy/a copy/a copy ....filename =?Utf-8?B?dmU=?= Microsoft Excel New Users 1 29th Sep 2005 09:12 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:01 PM.