+ Reply to Thread
Results 1 to 9 of 9

Open workbook, insert copied rows VBA code

Hybrid View

  1. #1
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: Open workbook, insert copied rows VBA code

    Yeah-but what's on the clipboard in the first place-you're only going to insert at row 4 but what you insert is what's on the clipboard!
    If I've helped you, please consider adding to my reputation - just click on the liitle star at the left.

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~(Pride has no aftertaste.)

    You can't do one thing. XLAdept

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~aka Orrin

  2. #2
    Forum Contributor
    Join Date
    07-26-2012
    Location
    USA
    MS-Off Ver
    Excel 2007 & 2010
    Posts
    351

    Re: Open workbook, insert copied rows VBA code

    Quote Originally Posted by xladept View Post
    Yeah-but what's on the clipboard in the first place-you're only going to insert at row 4 but what you insert is what's on the clipboard!
    Thank you so much. I'm pretty certain you are correct, there was nothing on the clipboard to paste to the new workbook once opened. I fixed it with by putting
     Selection.Copy
    before
     Workbooks.Open Filename:="X:\OSC DETAIL\Invoices Sent to AP\Sent Invoice Summary - 2012.xlsx"
    Works like a charm now. Thanks again

+ 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