+ Reply to Thread
Results 1 to 9 of 9

Paste Data from one sheet to another sheet in same Column

  1. #1
    Valued Forum Contributor realniceguy5000's Avatar
    Join Date
    03-20-2008
    Location
    Fl
    MS-Off Ver
    Excel 2003 & 2010
    Posts
    951

    Paste Data from one sheet to another sheet in same Column

    Hi,
    Can someone help me with this script? What I want to do is paste the next sheets data into the next empty space in (A) of the last sheet. The script works for the first paste but after that it just over pastes the next sheets data on top of what was already pasted.

    Here what I have...
    Please Login or Register  to view this content.
    Thanks So Much!!!

    Mike
    Last edited by realniceguy5000; 12-13-2008 at 09:14 AM.

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689
    Try ...
    Please Login or Register  to view this content.
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Forum Expert
    Join Date
    10-10-2008
    Location
    Northeast Pennsylvania, USA
    MS-Off Ver
    Excel 2007
    Posts
    2,387
    realniceguy5000,

    Try:

    Please Login or Register  to view this content.

    Have a great day,
    Stan
    Have a great day,
    Stan

    Windows 10, Excel 2007, on a PC.

    If you are satisfied with the solution(s) provided, please mark your thread as Solved by clicking EDIT in your original post, click GO ADVANCED and set the PREFIX box to SOLVED.

  4. #4
    Valued Forum Contributor realniceguy5000's Avatar
    Join Date
    03-20-2008
    Location
    Fl
    MS-Off Ver
    Excel 2003 & 2010
    Posts
    951
    Thanks Guys. Both work perfectly...

    I have one additional problem that I see now. I would like to be able to change this script to work on other workbooks as well. Like since "Jan Totals" is Hard coded how can we change to work on other Months Totals? example Feb Totals and so on?

    I'm not sure how to do that.

    Thanks For your help!!!

    Mike

  5. #5
    Valued Forum Contributor realniceguy5000's Avatar
    Join Date
    03-20-2008
    Location
    Fl
    MS-Off Ver
    Excel 2003 & 2010
    Posts
    951
    I think I worked this out by using a string as the workbooks name. How can I trim the name of the worksheet not to include the ".xls" Part?

    Here is what I have, Not fully tested on my other workbooks.

    Thank You, Mike

    Please Login or Register  to view this content.

  6. #6
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200
    Try using this UDF
    Please Login or Register  to view this content.
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  7. #7
    Valued Forum Contributor realniceguy5000's Avatar
    Join Date
    03-20-2008
    Location
    Fl
    MS-Off Ver
    Excel 2003 & 2010
    Posts
    951
    Thanks Roy, Always a Great Help!!!

    I also found this option to work as well. Untested on my other workbooks just yet...

    Thanks Everyone!!!

    Mike

    Please Login or Register  to view this content.

  8. #8
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200
    That's very similar to the code that I posted, but being a UDF you can call it from any workbook especially if you save it in an addin or PERSONAL.xls

  9. #9
    Valued Forum Contributor realniceguy5000's Avatar
    Join Date
    03-20-2008
    Location
    Fl
    MS-Off Ver
    Excel 2003 & 2010
    Posts
    951
    Hi Roy,

    I understand now, I thought for once I could figure something out on my own.

    I just put my code in my personal mod and it renamed the sheet to "Personal". So I came back looking for Answers Hmmmm...

    I tried your code in place of mine and yours works much better.

    I have a lot to learn...

    Thanks so much for the follow up...

    Much appreciated!!! Mike

+ 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