+ Reply to Thread
Results 1 to 7 of 7

macro for saving multiple rows of data to new sheet

  1. #1
    Forum Contributor
    Join Date
    11-28-2008
    Location
    Norfolk UK
    MS-Off Ver
    2007
    Posts
    222

    macro for saving multiple rows of data to new sheet

    Hi Guys,

    I am looking to save a range of data from an input sheet, to a data sheet.

    I know how to save indivdual cells to a worksheet in the form of a data

    what i am looking to do is save A6 - J6 down A19 - J19, but only saving the data which is entered

    A6 - J6
    A7 - J7

    I hope I have explained myself correctly.

    Cheers in advance
    Attached Files Attached Files
    Last edited by VBA Noob; 04-15-2009 at 01:33 AM.

  2. #2
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258

    Re: macro for saving multiple rows of data to new sheet

    Hello stephen1000,

    When the data the copied "Data" worksheet, do you want to over write any previous data or add the new data below the old data?
    Sincerely,
    Leith Ross

    Remember To Do the Following....

    1. Use code tags. Place [CODE] before the first line of code and [/CODE] after the last line of code.
    2. Thank those who have helped you by clicking the Star below the post.
    3. Please mark your post [SOLVED] if it has been answered satisfactorily.


    Old Scottish Proverb...
    Luathaid gu deanamh maille! (Rushing causes delays!)

  3. #3
    Forum Contributor
    Join Date
    11-28-2008
    Location
    Norfolk UK
    MS-Off Ver
    2007
    Posts
    222

    Smile Re: macro for saving multiple rows of data to new sheet

    Quote Originally Posted by Leith Ross View Post
    Hello stephen1000,

    When the data the copied "Data" worksheet, do you want to over write any previous data or add the new data below the old data?
    Hi Leith,

    Its a rolling database so if 4 rows are filled on the form sheet those 4 rows are added to the bottom of the data already stored

    if two are filled so on and so on

    cheers

  4. #4
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258

    Re: macro for saving multiple rows of data to new sheet

    Hello stephen1000,

    I updated your macro to copy the information from the "Form" sheet to the next available row on the "Data" sheet.
    Please Login or Register  to view this content.
    Attached Files Attached Files

  5. #5
    Forum Contributor
    Join Date
    11-28-2008
    Location
    Norfolk UK
    MS-Off Ver
    2007
    Posts
    222

    Re: macro for saving multiple rows of data to new sheet

    Hi Leith

    Thanks for that

    I have changed it around so the data is cleared when saved,

    but it seems to be pulling the lines across to the data sheet as well?

    please look at the data sheet A201

    thanks
    Attached Files Attached Files

  6. #6
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258

    Re: macro for saving multiple rows of data to new sheet

    Hello stephen1000,

    This version only copies the values - no formatting.
    Please Login or Register  to view this content.

  7. #7
    Forum Contributor
    Join Date
    11-28-2008
    Location
    Norfolk UK
    MS-Off Ver
    2007
    Posts
    222

    Re: macro for saving multiple rows of data to new sheet

    Leith

    YOU ROCK!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

    thanks for that



    stephen

+ 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