+ Reply to Thread
Results 1 to 3 of 3

clear the copy

  1. #1
    Forum Contributor
    Join Date
    06-15-2004
    Posts
    246

    clear the copy

    i have some code which i use to open another workbook, copy in some daat and then close it after but this creates a pop up asking if i wish to keep the data for pasting in later. Is there some code i can use to clear the copy without the pop up?

  2. #2
    james.billy@gmail.com
    Guest

    Re: clear the copy

    Hi Ceemo,

    You could try Application.CutCopyMode = False, this I think clears it
    another alternative is to switch warnings off, ie
    Application.DisplayAlerts = False which would not prompt about clearing
    the data IF you use this method remember to switch it back on at the
    end of your code ie Application.DisplayAlerts = True.

    Cheers,

    James

    ceemo wrote:
    > i have some code which i use to open another workbook, copy in some daat
    > and then close it after but this creates a pop up asking if i wish to
    > keep the data for pasting in later. Is there some code i can use to
    > clear the copy without the pop up?
    >
    >
    > --
    > ceemo
    > ------------------------------------------------------------------------
    > ceemo's Profile: http://www.excelforum.com/member.php...o&userid=10650
    > View this thread: http://www.excelforum.com/showthread...hreadid=548547



  3. #3
    Duncan
    Guest

    Re: clear the copy

    have you tried

    application.cutcopymode = false

    before you close the workbook

    HTH

    Duncan


+ 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