PC Review


Reply
Thread Tools Rate Thread

Copying with .Value

 
 
Simon
Guest
Posts: n/a
 
      11th Aug 2008
Cells.Find("latest").Select
Selection.Copy Destination:=ActiveCell.Offset(0, 1)

I wish to use only the value of the cell.

What is wrong with

Cells.Find("latest").Select
Selection.Copy Destination:=ActiveCell.Offset(0, 1)

Thanks
 
Reply With Quote
 
 
 
 
Mike H
Guest
Posts: n/a
 
      11th Aug 2008
Maybe

Range("latest").Select
ActiveCell.Copy
ActiveCell.Offset(0, 1).PasteSpecial xlPasteValues

Mike

"Simon" wrote:

> Cells.Find("latest").Select
> Selection.Copy Destination:=ActiveCell.Offset(0, 1)
>
> I wish to use only the value of the cell.
>
> What is wrong with
>
> Cells.Find("latest").Select
> Selection.Copy Destination:=ActiveCell.Offset(0, 1)
>
> Thanks
>

 
Reply With Quote
 
Simon
Guest
Posts: n/a
 
      11th Aug 2008
On Aug 11, 12:14*pm, Mike H <Mi...@discussions.microsoft.com> wrote:
> Maybe
>
> Range("latest").Select
> ActiveCell.Copy
> ActiveCell.Offset(0, 1).PasteSpecial xlPasteValues
>
> Mike
>
>
>
> "Simon" wrote:
> > Cells.Find("latest").Select
> > Selection.Copy Destination:=ActiveCell.Offset(0, 1)

>
> > I wish to use only the value of the cell.

>
> > What is wrong with

>
> > Cells.Find("latest").Select
> > Selection.Copy Destination:=ActiveCell.Offset(0, 1)

>
> > Thanks- Hide quoted text -

>
> - Show quoted text -


But am I using the clipboard in doing this?
 
Reply With Quote
 
Peter T
Guest
Posts: n/a
 
      11th Aug 2008
Dim c As Range
'On Error Resume Next
Set c = Nothing
Set c = ActiveSheet.Cells.Find("latest")

If Not c Is Nothing Then
With c
..Offset(0, 1).Value = .Value
..Clear
' or maybe only
' .ClearContents
End With
' else
' msgbox "''latest'' not found"
End If

Regards,
Peter T

"Simon" <(E-Mail Removed)> wrote in message
news:26dd131b-148f-4647-ad51-(E-Mail Removed)...
> Cells.Find("latest").Select
> Selection.Copy Destination:=ActiveCell.Offset(0, 1)
>
> I wish to use only the value of the cell.
>
> What is wrong with
>
> Cells.Find("latest").Select
> Selection.Copy Destination:=ActiveCell.Offset(0, 1)
>
> Thanks



 
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
Copying sheets without copying named ranges NMACK08 Microsoft Excel Programming 1 5th Feb 2008 08:53 PM
Which is faster, copying range to another set of ranges or copying tomemory? axwack Microsoft Excel Programming 2 12th Dec 2007 01:19 PM
copying the Hyperlink function result without copying the actual formula mcheng Microsoft Excel Worksheet Functions 2 9th Jun 2007 02:43 AM
Copying the filtered data to clipboard is copying non-visible rows =?Utf-8?B?U2VldGhhUmFtYW4=?= Microsoft Excel Crashes 10 12th Jul 2006 09:39 PM
Debuggin and Shadow Copying. How to avoid copying dll in temp fold =?Utf-8?B?TWljaGFlbCBOZW10c2V2?= Microsoft C# .NET 4 1st Mar 2006 08:55 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:30 AM.