+ Reply to Thread
Results 1 to 3 of 3

clearing a selection

  1. #1
    John in Surrey
    Guest

    clearing a selection

    Hi team
    after my macro has run and copied some cells to the next sheet
    Range("C5:E29").Select
    Selection.Copy
    I'm left with the dotted lines around the cells copies, how do I clear
    this selection.
    thanks

    john
    john
    Images of home (NZ)
    http:\\www.myplace.co.nz/home
    What we are up to in the UK
    http:\\www.myplace.co.nz

  2. #2
    Peter Rooney
    Guest

    RE: clearing a selection

    Hi, John,

    application.cutcopymode = false

    empties the Windows clipboard and thus removes the dotted lines.

    Regards

    Pete



    "John in Surrey" wrote:

    > Hi team
    > after my macro has run and copied some cells to the next sheet
    > Range("C5:E29").Select
    > Selection.Copy
    > I'm left with the dotted lines around the cells copies, how do I clear
    > this selection.
    > thanks
    >
    > john
    > john
    > Images of home (NZ)
    > http:\\www.myplace.co.nz/home
    > What we are up to in the UK
    > http:\\www.myplace.co.nz
    >


  3. #3
    Jim May
    Guest

    Re: clearing a selection

    Add this line (just before your End Sub line):
    Application.CutCopyMode = False
    HTH

    "John in Surrey" <j@myplace.co.nz> wrote in message
    news:dtd3n1luq3ita37g6qtgcl3enpru7o9h2b@4ax.com...
    > Hi team
    > after my macro has run and copied some cells to the next sheet
    > Range("C5:E29").Select
    > Selection.Copy
    > I'm left with the dotted lines around the cells copies, how do I clear
    > this selection.
    > thanks
    >
    > john
    > john
    > Images of home (NZ)
    > http:\\www.myplace.co.nz/home
    > What we are up to in the UK
    > http:\\www.myplace.co.nz




+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1