+ Reply to Thread
Results 1 to 5 of 5

Why is there message that large amount of information on clipboard?

Hybrid View

  1. #1
    Registered User
    Join Date
    03-26-2015
    Location
    SINGAPORE
    MS-Off Ver
    MS2013
    Posts
    56

    Why is there message that large amount of information on clipboard?

    Hi
    I am trying to write a VBA for copying worksheet from a workbook selected by user to current workbook. Name of current workbook is Test Template, copying to worksheet named 'SCHEDULE'. After copying, user will be directed to another worksheet named "MAIN". Why is there a message that large amount of information is on clipboard, asking user to save or delete the information?

    My VBA looks like this:

    Dim fNameAndPath As Variant, wb As Workbook
    fNameAndPath = Application.GetOpenFilename(FileFilter:="Excel Files (*.XLS), *.XLS", Title:="Select File To Be Opened")
    If fNameAndPath = False Then Exit Sub
    Set wb = Workbooks.Open(fNameAndPath)
       Cells.Select
       Selection.Copy
       Windows("TEST Template.xlsm").Activate
       Sheets("SCHEDULE").Select
       Cells.Select
       ActiveSheet.Paste
       Sheets("Main").Activate
    
    wb.Close savechanges:=True 'or false
    End Sub
    Pl help. Thanks.
    Last edited by ElaineMok; 05-16-2016 at 03:53 AM.

  2. #2
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    16,058

    Re: Why is there message that large amount of information on clipboard?

    Your post does not comply with Rule 3 of our Forum RULES. Use code tags around code.

    Posting code between [CODE] [/CODE] tags makes your code much easier to read and copy for testing, it also maintains VBA formatting.

    Highlight your code and click the # icon at the top of your post window. More information about these and other tags can be found here



    (This thread should receive no further responses until this moderation request is fulfilled, as per Forum Rule 7)
    Never use Merged Cells in Excel

  3. #3
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    16,058

    Re: Why is there message that large amount of information on clipboard?

    If not then disable alerts:

    Dim fNameAndPath As Variant, wb As Workbook
    
    Application.DisplayAlerts = False
    
    fNameAndPath = Application.GetOpenFilename(FileFilter:="Excel Files (*.XLS), *.XLS", Title:="Select File To Be Opened")
    If fNameAndPath = False Then Exit Sub
    Set wb = Workbooks.Open(fNameAndPath)
       Cells.Select
       Selection.Copy
       Windows("TEST Template.xlsm").Activate
       Sheets("SCHEDULE").Select
       Cells.Select
       ActiveSheet.Paste
       Sheets("Main").Activate
    
    wb.Close savechanges:=True 'or false
    
    Application.DisplayAlerts = True
    
    End Sub

  4. #4
    Registered User
    Join Date
    03-26-2015
    Location
    SINGAPORE
    MS-Off Ver
    MS2013
    Posts
    56

    Re: Why is there message that large amount of information on clipboard?

    Thanks. It solves the problem.

  5. #5
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    16,058

    Re: Why is there message that large amount of information on clipboard?

    Are you trying to copy whole sheet into another workbook?

    if yes, use this (assuming TEST Template workbook is open:

    Sub COPY_SHEET()
        ThisWorkbook.Sheets("Your sheet").Activate
        ThisWorkbook.Sheets("Your sheet").Copy After:=Workbooks("TEST Template").Sheets(1)
    End Sub

+ 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. Large information on clipboard message
    By khalid79m in forum Excel General
    Replies: 3
    Last Post: 04-29-2014, 08:54 AM
  2. [SOLVED] Large amount of data on clipboard message
    By Bezzie in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 05-14-2013, 05:14 AM
  3. Help replacing large amount of text with another large amount of text??
    By floydrob in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-30-2012, 05:01 AM
  4. Closing a Workbook with Clipboard too large
    By Torero in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-06-2006, 03:25 PM
  5. Macros and large clipboard error
    By Sarahds in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-02-2006, 12:23 AM
  6. Large amount of info on the clipboard
    By ledzepe in forum Excel General
    Replies: 2
    Last Post: 03-01-2006, 07:20 PM
  7. [SOLVED] Store clipboard before "vba do cut&paste" then recover stored information to clipboard?
    By Marie J-son in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-08-2006, 02:00 AM
  8. [SOLVED] can I make a chart with large amount of information?
    By Snoozin in forum Excel - New Users/Basics
    Replies: 1
    Last Post: 09-14-2005, 09:05 AM

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