PC Review


Reply
Thread Tools Rate Thread

Deselecting active cells after pasting

 
 
=?Utf-8?B?RGF6emE=?=
Guest
Posts: n/a
 
      16th Oct 2006
Hi,

I've written VB code to copy and paste. The problem is when I go back to the
Excel environment, the cell that was copied is still active (i.e. it still
has that running border around it). To deselect the cell I press the esc key.
How can I do this in VB?
 
Reply With Quote
 
 
 
 
=?Utf-8?B?U3RlZmk=?=
Guest
Posts: n/a
 
      16th Oct 2006
Recording a macro including pressing Esc immediately will show you the
appropriate VBA statement (Application.CutCopymode=False).

Regards,
Stefi


„Dazza” ezt *rta:

> Hi,
>
> I've written VB code to copy and paste. The problem is when I go back to the
> Excel environment, the cell that was copied is still active (i.e. it still
> has that running border around it). To deselect the cell I press the esc key.
> How can I do this in VB?

 
Reply With Quote
 
Bob Phillips
Guest
Posts: n/a
 
      16th Oct 2006
Application.CutCopyMode

--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)

"Dazza" <(E-Mail Removed)> wrote in message
news:FAC2769C-9A92-465B-912D-(E-Mail Removed)...
> Hi,
>
> I've written VB code to copy and paste. The problem is when I go back to

the
> Excel environment, the cell that was copied is still active (i.e. it still
> has that running border around it). To deselect the cell I press the esc

key.
> How can I do this in VB?



 
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
Image pasting to incorrect cells or bad location within cells DonFlak@gmail.com Microsoft Excel Programming 5 10th Oct 2007 04:38 PM
Problem with deselecting cells =?Utf-8?B?S2F2ZWg=?= Microsoft Excel Crashes 1 16th Oct 2005 09:18 PM
Pasting on Filtered Data Sheets without pasting onto hidden cells =?Utf-8?B?Q0NTTUNB?= Microsoft Excel Misc 1 28th Aug 2005 01:22 PM
Deselecting unwanted cells Octavio Microsoft Excel New Users 3 12th Mar 2005 03:04 PM
Pasting single cells from Word to multiple cells in Excel =?Utf-8?B?QVNCaXNz?= Microsoft Excel Worksheet Functions 1 15th Feb 2005 11:47 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:38 PM.