+ Reply to Thread
Results 1 to 4 of 4

Automaticly Moving Data Between Sheets

  1. #1
    Registered User
    Join Date
    07-03-2013
    Location
    New England
    MS-Off Ver
    Excel 2010
    Posts
    24

    Automaticly Moving Data Between Sheets

    Hey everyone, I am working on a macro which transfers data from one sheet to another. The code starts by taking cells M1:P1 from sheet SL_Background and moving them to B9:E9 on sheet CreateSL. It then moves to the next set of four cells on SL_Background (Q1:T1) onto the next line down on sheet CreateSL (B10:E10). I am repeating this process about 180 times right now and it is all coded like this:
    Please Login or Register  to view this content.
    So what I would like to do is to make something that automates this process and will eliminate more than 1000 lines of code. I'm pretty sure I need some kind of loop but I'm not sure exactly how to set it up properly. Any help would be greatly appreciated, thanks.
    Last edited by sczerniak; 07-19-2013 at 04:12 PM. Reason: solved

  2. #2
    Forum Expert tigeravatar's Avatar
    Join Date
    03-25-2011
    Location
    Colorado, USA
    MS-Off Ver
    Excel 2003 - 2013
    Posts
    5,361

    Re: Automaticly Moving Data Between Sheets

    sczerniak,

    Assuming you are doing this for 180 sets of four cells, and only using row 1 of sheet 'SL_Background', this should work for you:
    Please Login or Register  to view this content.
    Hope that helps,
    ~tigeravatar

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  3. #3
    Registered User
    Join Date
    07-03-2013
    Location
    New England
    MS-Off Ver
    Excel 2010
    Posts
    24

    Re: Automaticly Moving Data Between Sheets

    Awesome, that was exactly what I needed. My code also runs more than 20% faster now too!

  4. #4
    Forum Expert tigeravatar's Avatar
    Join Date
    03-25-2011
    Location
    Colorado, USA
    MS-Off Ver
    Excel 2003 - 2013
    Posts
    5,361

    Re: Automaticly Moving Data Between Sheets

    You're very welcome

+ 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. Moving data between sheets
    By tlee123 in forum Excel General
    Replies: 0
    Last Post: 04-25-2012, 10:38 PM
  2. Different sheets and automaticly adding their location
    By Krymly in forum Excel - New Users/Basics
    Replies: 3
    Last Post: 12-16-2011, 09:49 AM
  3. moving data to different sheets
    By shreya in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 10-28-2010, 09:47 AM
  4. Moving Data between Sheets
    By Ronnie1234 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 05-26-2010, 02:42 PM
  5. [SOLVED] HOW CAN I PASTE THE DATE AUTOMATICLY THROUGH DIFFRENT SHEETS
    By nazar in forum Excel General
    Replies: 1
    Last Post: 09-26-2005, 04:05 AM

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