+ Reply to Thread
Results 1 to 6 of 6

Macro to paste into already open workbook

  1. #1
    Registered User
    Join Date
    08-30-2011
    Location
    Australia
    MS-Off Ver
    Excel 2003 & 2010
    Posts
    57

    Macro to paste into already open workbook

    I have the following macro that works fine if the destination workbook is closed, how can I modify it because the destination workbook as it will always be open and if it is I currently I get the message workbook already open.
    Please Login or Register  to view this content.
    I have tried to alter this line
    Please Login or Register  to view this content.
    to
    Please Login or Register  to view this content.
    But that gives me a subscript error

    Thanks for any assistance
    Last edited by Macfool; 06-16-2018 at 01:20 PM.

  2. #2
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,072

    Re: Macro to paste into already open workbook

    Try
    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    08-30-2011
    Location
    Australia
    MS-Off Ver
    Excel 2003 & 2010
    Posts
    57

    Re: Macro to paste into already open workbook

    Fluff13
    Thanks for the reply, I tried your suggestion but still get the runtime error 9, the workbook is open on another computer on the drive and written to from another location hence the file path, that's why I need to have it write to an open workbook.

  4. #4
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,072

    Re: Macro to paste into already open workbook

    You cannot write to a workbook that is open on another computer, unless the workbook is shared.

  5. #5
    Registered User
    Join Date
    08-30-2011
    Location
    Australia
    MS-Off Ver
    Excel 2003 & 2010
    Posts
    57

    Re: Macro to paste into already open workbook

    Ok I'll look into that and see how I go, thanks for the assistance.

  6. #6
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,072

    Re: Macro to paste into already open workbook

    You're welcome

+ 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. Need a Macro that can paste text from one workbook into any open workbook
    By bachmap in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-29-2017, 09:36 PM
  2. [SOLVED] Excel Macro Help - Cut, open a new workbook, paste, and save
    By Chanceux in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-10-2015, 07:52 PM
  3. [SOLVED] Error in Macro (Open new workBook Paste Special)
    By cvishu in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 11-02-2014, 02:41 PM
  4. Macro VBA to copy and paste cells from one open workbook to another open workbook
    By bloomingcarrot in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-23-2014, 07:55 PM
  5. Macro to open another workbook and paste values to a sheet
    By jono7gold in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-27-2014, 07:08 AM
  6. Replies: 1
    Last Post: 05-02-2014, 12:19 PM
  7. Macro to open workbook and copy and paste values in to orig workbo
    By Dena X in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 12-15-2005, 08:20 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