+ Reply to Thread
Results 1 to 1 of 1

Prevent clipboard from emptying with macro that runs on deactivate

  1. #1
    Registered User
    Join Date
    01-31-2013
    Location
    Burlington, Ontario
    MS-Off Ver
    Excel 2010
    Posts
    21

    Prevent clipboard from emptying with macro that runs on deactivate

    I have developed (with a lot if help from the Forum) a macro that runs when a particular sheet in the workbook is deactivated. It appears that this is causing a general problem in the workbook where we cannot copy data from one worksheet to another, presumably because the clipboard is being emptied.

    If this this a general problem that is encountered often, please let me know what if there is a way to prevent this from occuring.

    Addendum to prior post:
    Further to my original post, the problem is only when trying to copy to or from the worksheet with the following code:
    Private Sub Worksheet_Deactivate()

    Worksheets("Copy").Range("Copy_Range").Copy _
    Range("Formula_Range")

    Application.CutCopyMode = False

    End Sub

    I have seen references to this problem that suggest that to avoid the worksheet code altering the clipboard, another sub can be called that copies the data without using the clipboard.

    This problem is causing a lot of frustration as the worksheet with the code is used quite a bit and we need to be avle to copy text from this worksheet to other sheets in the workbook.

    Any suggestions would be greatly appreciated.

    Thanks again.

    Regards,

    Craig
    Last edited by CDEG; 02-16-2014 at 08:05 PM.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Macro - Deactivate commandbutton
    By anmck in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-11-2009, 01:35 PM
  2. Activate/deactivate Office Clipboard in VBA
    By Peter Rooney in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 12-06-2005, 10:10 AM
  3. Replies: 4
    Last Post: 03-14-2005, 03:06 PM
  4. deactivate macro
    By ciquitraque in forum Excel General
    Replies: 0
    Last Post: 03-10-2005, 10:42 AM
  5. deactivate macro
    By ciquitraque in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-09-2005, 07:32 PM

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