+ Reply to Thread
Results 1 to 4 of 4

VBA Cut Copy Issue

  1. #1
    Registered User
    Join Date
    08-05-2014
    Location
    United States
    MS-Off Ver
    2010
    Posts
    25

    VBA Cut Copy Issue

    Hi everyone,

    Here is some background information on this issue:

    I am trying to create a daily report. In doing this I want to be able to pull external data into a sheet, specifically a tab called "Datapaste 2." From here I have a Macro that deletes the top row of data (as it is simply a header I don't need), then the Macro moves my data to another tab called "Data." The problem that I run into, is that the macro will simply copy over the previous days data when I need it to be pasted at the bottom of whatever data is in the "Data" tab, so that I can start collecting historical data. I would need the data I am pasting over to be placed at the bottom of whatever previous data there is and starting in column B, not A. I have the Macro assigned to a form control button named, "Click me." Not sure if that info is needed.

    We were able to figure out how to complete the above; however, rather than simply copying the date from "Datapaste 2" to the bottom of the previous data that has been pasted in "Data" I would like to do a cut and copy, or have a way that after the data has been pasted and moved from "Datapaste 2" to "Data" it will delete and leave everything blank from row 10 down in "Datapaste 2." (Still leaving the data that has run through the Macro in the "Data" tab of course.

    Essentially I want to paste the data I have imported from another file into cell A10 of the "Datapaste 2" tab, then click my form button, which will delete row A10, and then move that data to the bottom of any previous data in the "Data" tab. From here I would like excel to go back to the "Datapaste 2" tab and delete all of the contents from row 10 down.

    Here is a copy of the code:


    Please Login or Register  to view this content.
    Thanks!

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,420

    Re: VBA Cut Copy Issue

    Please post a sample workbook.

    Regards, TMS
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Registered User
    Join Date
    08-05-2014
    Location
    United States
    MS-Off Ver
    2010
    Posts
    25

    Re: VBA Cut Copy Issue

    Here is a sample workbook. I have added a tab called "Sample Data" This is an example of the data I will be importing. Realistically I will be importing the data from another source and pasting it into the "Datapaste 2 tab" in cell A10. I just thought it would be helpful to have example data.

    You'll notice the data is being pasted at the bottom of any previous data in the "Data" tab starting in column B, this is correct.
    Attached Files Attached Files
    Last edited by ntate; 08-06-2014 at 03:15 PM. Reason: Added correct Reporting File

  4. #4
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,420

    Re: VBA Cut Copy Issue

    Is this what you want?

    Please Login or Register  to view this content.

    Regards, TMS

  5. #5
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,420

    Re: VBA Cut Copy Issue

    Thanks for the rep

+ 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. copy down formula issue
    By roligankan in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 08-14-2013, 04:01 AM
  2. copy formula issue
    By skatcb in forum Excel General
    Replies: 4
    Last Post: 05-28-2012, 06:03 PM
  3. I have a <CTL-C> (COPY) issue...
    By jPaulB in forum Excel - New Users/Basics
    Replies: 2
    Last Post: 03-21-2012, 09:18 PM
  4. Excel 2007 : Copy tab issue ???
    By arangoa79 in forum Excel General
    Replies: 3
    Last Post: 12-09-2010, 12:13 AM
  5. copy and paste issue
    By dude2007 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-19-2008, 05:29 PM

Tags for this Thread

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