+ Reply to Thread
Results 1 to 4 of 4

Close other workbook after Copy/Paste?

  1. #1
    Forum Contributor
    Join Date
    11-17-2009
    Location
    PA USA
    MS-Off Ver
    Excel 2000
    Posts
    184

    Question Close other workbook after Copy/Paste?

    I have 2 workbooks. The user is working in workbook1, and clicks a button in a userform to open workbook2. After the user finds the correct data in workbook2, they click the cell, right mouse button "Copy", then manually Close workbook2, then right mouse button "Paste" the data in the userform textbox.

    I want workbook2 to close automatically after the Paste command. Is this possible?

    Can you show me the way?

    I attached workbook1 (open_close.xls) and workbook2 (anvils.xls)

    Thank you for helping me.
    Attached Files Attached Files
    Last edited by proepert; 01-26-2010 at 01:43 AM. Reason: Changed title, removed confusing text.

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Close other workbook after RMB Paste?

    "RMB Paste"?
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Forum Contributor
    Join Date
    11-17-2009
    Location
    PA USA
    MS-Off Ver
    Excel 2000
    Posts
    184

    Re: Close other workbook after RMB Paste?

    RMB = right mouse button, sorry.

    I would like to close the second workbook after the copy/paste is completed by the user, so the user does not have to manually close the other workbook.
    Last edited by proepert; 01-26-2010 at 06:52 AM.

  4. #4
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Close other workbook after Copy/Paste?

    I am reluctant to touch Andy's lovely code. It seems one place it could be done is

    Please Login or Register  to view this content.
    ... but that's really a hack.

+ 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