PC Review


Reply
Thread Tools Rate Thread

Converting Paste to PasteSpecial Values

 
 
=?Utf-8?B?Qm9i?=
Guest
Posts: n/a
 
      30th Aug 2007
Con someone kindly tell me how to modify the line of code below so that
instead of copying the contents, formatting, validation, etc. of a cell, it
simply copies the cell's value?

Worksheets(Sheet1Name).Cells(Sheet1EmpTypeRowPointer, h). _
Copy Worksheets(Sheet2Name).Cells(Sheet2RowPointer, _
Sheet2EmpTypeColPointer)

Thanks in advance for the help.

 
Reply With Quote
 
 
 
 
=?Utf-8?B?Sm9lbA==?=
Guest
Posts: n/a
 
      30th Aug 2007
Add Value

Worksheets(Sheet1Name).Cells(Sheet1EmpTypeRowPointer, h).value _
Copy Worksheets(Sheet2Name).Cells(Sheet2RowPointer, _
Sheet2EmpTypeColPointer).value


"Bob" wrote:

> Con someone kindly tell me how to modify the line of code below so that
> instead of copying the contents, formatting, validation, etc. of a cell, it
> simply copies the cell's value?
>
> Worksheets(Sheet1Name).Cells(Sheet1EmpTypeRowPointer, h). _
> Copy Worksheets(Sheet2Name).Cells(Sheet2RowPointer, _
> Sheet2EmpTypeColPointer)
>
> Thanks in advance for the help.
>

 
Reply With Quote
 
papou
Guest
Posts: n/a
 
      30th Aug 2007
Hello Bob

Worksheets(Sheet1Name).Cells(Sheet1EmpTypeRowPointer, h).Copy

Worksheets(Sheet2Name).Cells(Sheet2RowPointer, _
Sheet2EmpTypeColPointer).PasteSpecial (xlPasteValues)

HTH
Cordially
Pascal

"Bob" <(E-Mail Removed)> a écrit dans le message de news:
4091AC29-C580-45A8-AC0C-(E-Mail Removed)...
> Con someone kindly tell me how to modify the line of code below so that
> instead of copying the contents, formatting, validation, etc. of a cell,
> it
> simply copies the cell's value?
>
> Worksheets(Sheet1Name).Cells(Sheet1EmpTypeRowPointer, h). _
> Copy Worksheets(Sheet2Name).Cells(Sheet2RowPointer, _
> Sheet2EmpTypeColPointer)
>
> Thanks in advance for the help.
>



 
Reply With Quote
 
=?Utf-8?B?Qm9i?=
Guest
Posts: n/a
 
      30th Aug 2007
Joel,
Thanks for the help. Unfortunately, after I modified the code per your
suggestion, I now get a "Compile error" message.
Bob


"Joel" wrote:

> Add Value
>
> Worksheets(Sheet1Name).Cells(Sheet1EmpTypeRowPointer, h).value _
> Copy Worksheets(Sheet2Name).Cells(Sheet2RowPointer, _
> Sheet2EmpTypeColPointer).value
>
>
> "Bob" wrote:
>
> > Con someone kindly tell me how to modify the line of code below so that
> > instead of copying the contents, formatting, validation, etc. of a cell, it
> > simply copies the cell's value?
> >
> > Worksheets(Sheet1Name).Cells(Sheet1EmpTypeRowPointer, h). _
> > Copy Worksheets(Sheet2Name).Cells(Sheet2RowPointer, _
> > Sheet2EmpTypeColPointer)
> >
> > Thanks in advance for the help.
> >

 
Reply With Quote
 
=?Utf-8?B?Qm9i?=
Guest
Posts: n/a
 
      30th Aug 2007
Pascal,
That did the trick! Thanks!
Bob


"papou" wrote:

> Hello Bob
>
> Worksheets(Sheet1Name).Cells(Sheet1EmpTypeRowPointer, h).Copy
>
> Worksheets(Sheet2Name).Cells(Sheet2RowPointer, _
> Sheet2EmpTypeColPointer).PasteSpecial (xlPasteValues)
>
> HTH
> Cordially
> Pascal
>
> "Bob" <(E-Mail Removed)> a écrit dans le message de news:
> 4091AC29-C580-45A8-AC0C-(E-Mail Removed)...
> > Con someone kindly tell me how to modify the line of code below so that
> > instead of copying the contents, formatting, validation, etc. of a cell,
> > it
> > simply copies the cell's value?
> >
> > Worksheets(Sheet1Name).Cells(Sheet1EmpTypeRowPointer, h). _
> > Copy Worksheets(Sheet2Name).Cells(Sheet2RowPointer, _
> > Sheet2EmpTypeColPointer)
> >
> > Thanks in advance for the help.
> >

>
>
>

 
Reply With Quote
 
papou
Guest
Posts: n/a
 
      30th Aug 2007
My pleasure!

Cordially
Pascal

"Bob" <(E-Mail Removed)> a écrit dans le message de news:
22502232-C711-444D-BD76-(E-Mail Removed)...
> Pascal,
> That did the trick! Thanks!
> Bob
>
>
> "papou" wrote:
>
>> Hello Bob
>>
>> Worksheets(Sheet1Name).Cells(Sheet1EmpTypeRowPointer, h).Copy
>>
>> Worksheets(Sheet2Name).Cells(Sheet2RowPointer, _
>> Sheet2EmpTypeColPointer).PasteSpecial (xlPasteValues)
>>
>> HTH
>> Cordially
>> Pascal
>>
>> "Bob" <(E-Mail Removed)> a écrit dans le message de news:
>> 4091AC29-C580-45A8-AC0C-(E-Mail Removed)...
>> > Con someone kindly tell me how to modify the line of code below so that
>> > instead of copying the contents, formatting, validation, etc. of a
>> > cell,
>> > it
>> > simply copies the cell's value?
>> >
>> > Worksheets(Sheet1Name).Cells(Sheet1EmpTypeRowPointer, h). _
>> > Copy Worksheets(Sheet2Name).Cells(Sheet2RowPointer, _
>> > Sheet2EmpTypeColPointer)
>> >
>> > Thanks in advance for the help.
>> >

>>
>>
>>



 
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
Cut, Copy, Paste, PasteSpecial grayed out. news.microsoft.com Microsoft Excel Misc 9 8th Dec 2009 04:40 PM
Paste or PasteSpecial without CF Ken Microsoft Excel Programming 0 11th Feb 2009 03:06 PM
How can I catch a Paste action and default it to PasteSpecial-Values srinu1264 Microsoft Excel Programming 8 23rd May 2006 02:15 PM
Paste vs PasteSpecial =?Utf-8?B?R2FyeScncyBTdHVkZW50?= Microsoft Excel Programming 3 25th Feb 2006 06:29 PM
PasteSpecial Paste:=ColumnWidths Arvi Laanemets Microsoft Excel Programming 3 8th Feb 2005 01:46 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:57 AM.