+ Reply to Thread
Results 1 to 2 of 2

Pasting multiple data sets *bypassing clipboard* without a header and in order

  1. #1
    Registered User
    Join Date
    12-15-2014
    Location
    Spokane, WA
    MS-Off Ver
    Office Professional 2007
    Posts
    7

    Question Pasting multiple data sets *bypassing clipboard* without a header and in order

    **** Ok, New problem***

    I have all of the code working, however, there is so much data that it fills up my clipboard! This means there are two to thrtee times that the program asks if I want to keep or clear the data from the clipboard. I know there is code following the syntax selection.copy destination:=Sheets."whatever" but I can't get it to work with some more specific criteria. Namely, I want to copy the selected data to the first empty row in a different workbook. As we can see in the code from the first reply, I have it coded to select the data in the first datasheet and then copy/paste it to the new workbook bypassing the clipboard. The code then says to select the data from datasheet2, modify the selection to not include the top (header) row and then copy it to the clipboard, and from there paste it below the first set of data from datasheet1 pasted in the new workbook.

    Having trouble trying to get it to bypass the clipboard though... Here's how far I've gotten before using my "bang head here" spot on the wall (Note that I tried clearing the clipboard with the cutcopymode=false command... It didn't work):



    Original post:******
    Hi all,

    Im trying to combine some sets of information and am having some difficulty with the code. It continually errors no matter what I've tried to do which means I don't know what I'm doing

    Here's the quandry: I have multiple workbooks with sheets called "Before" and "After". Each of these sheets has data in columns A:BAY with row 1 being a header. There is no set amount of rows used, some have 500, some have 1500. I want to take the first sheet and paste it into a combined worksheet called HomeBefore including the header. The second "Before" sheet from the next workbook, I want to copy all of the data except the header placing it below the data from the first paste.

    Code legend:
    Datasheet1 = The first workbook with the "Before"/"After" sheets
    DataSheet2 = The second workbook with the "Before"/"After" sheets
    wsMaster = The workbook where all of the data is being combined

    Note that there is another macro which determines which sheets to use (fills in file names), and there is a snippet in this code that basically says "If that file slot is blank, skip to the next"

    The copy/paste from Datasheet1 works fine and I can copy the code down to other datasheets but it overwrites the previous data each time.

    Here's what I have so far:

    Please Login or Register  to view this content.
    Any suggestions?
    Last edited by niccio2; 01-09-2015 at 07:40 PM.

  2. #2
    Registered User
    Join Date
    12-15-2014
    Location
    Spokane, WA
    MS-Off Ver
    Office Professional 2007
    Posts
    7

    Re: Pasting multiple data sets without a header and in order

    ..........
    Edited to take out solution to previous quandry..
    Last edited by niccio2; 01-09-2015 at 07:06 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. Showing Correlation between 2 sets of data that have to be in time order.
    By joshnathan in forum Excel Charting & Pivots
    Replies: 0
    Last Post: 02-25-2013, 07:50 AM
  2. Replies: 7
    Last Post: 01-16-2013, 05:35 PM
  3. Replies: 2
    Last Post: 10-13-2012, 03:30 AM
  4. Sorting Data into Time order using a String header
    By beat in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 03-27-2012, 06:06 AM
  5. [SOLVED] Aling multiple sets of data by header column
    By MarkusO in forum Excel General
    Replies: 2
    Last Post: 04-12-2006, 02:35 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