+ Reply to Thread
Results 1 to 13 of 13

Move data to specific sheets based on value against a list

  1. #1
    Forum Contributor
    Join Date
    01-28-2014
    Location
    Manchester, UK
    MS-Off Ver
    Microsoft Office 365
    Posts
    127

    Move data to specific sheets based on value against a list

    Is there a way by using a macro i can move data from a dump sheet into a specific sheet

    For Example:

    If in Sheet1 i have my data in Columns A - D

    In Columns E - F i have a list containing store numbers and names

    I want a macro that looks at the data in Columns A - D and then think ok A1 has Number 20 in so it will check the list in E - F and see what store number 20 corresponds too

    Then move that information in A1 - D1 to the tab with that store name

    Then repeat down to the end moving each line in to its own specified sheet

    All sheets have been created in the workbook and there is around 200 sheets

    Thanks

    Dave

  2. #2
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: Move data to specific sheets based on value against a list

    Can you provide a sample with your layout and some dummy data?

  3. #3
    Forum Contributor
    Join Date
    01-28-2014
    Location
    Manchester, UK
    MS-Off Ver
    Microsoft Office 365
    Posts
    127

    Re: Move data to specific sheets based on value against a list

    Quote Originally Posted by JOHN H. DAVIS View Post
    Can you provide a sample with your layout and some dummy data?
    Hi John

    I have attached a dummy copy of the spreadsheet ...

    Auto Email Dummy.zip

    Basically I will post the data into the Dump Sheet which want a macro to move the data to a specific tab

    E.G.: Ship to Customer 1 in the dump sheet is the value I want to separate the data by .. If we look are the Store List tab 1 = Keighley and 2 = Egremont

    I want the macro to look in that column and match it to the store list then move it to the relevant stores tab for that number and name

    Hope this makes sense ?

    Thanks

    Dave

  4. #4
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: Move data to specific sheets based on value against a list

    Maybe:

    Please Login or Register  to view this content.

  5. #5
    Forum Contributor
    Join Date
    01-28-2014
    Location
    Manchester, UK
    MS-Off Ver
    Microsoft Office 365
    Posts
    127

    Re: Move data to specific sheets based on value against a list

    Quote Originally Posted by JOHN H. DAVIS View Post
    Maybe:

    Please Login or Register  to view this content.
    As far as i can see nothing happened

    Thanks

    Dave

  6. #6
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: Move data to specific sheets based on value against a list

    Did you run it from a standard module? Did you check the Sheets it was supposed to copy too. When I tested it, it worked for me?

  7. #7
    Forum Contributor
    Join Date
    01-28-2014
    Location
    Manchester, UK
    MS-Off Ver
    Microsoft Office 365
    Posts
    127

    Re: Move data to specific sheets based on value against a list

    Quote Originally Posted by JOHN H. DAVIS View Post
    Did you run it from a standard module? Did you check the Sheets it was supposed to copy too. When I tested it, it worked for me?
    Oh dear ... Rookie error ... I pasted the macro in the sheets object

    Ok 2nd thing .. I am currently using just short of 200 tabs for all this data .. is there anyway i can make it so that if i hide all the sheets the macro can unhide the relevant sheets only then paste the data or vice versa ?

    Thanks

    Dave

  8. #8
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: Move data to specific sheets based on value against a list

    Maybe:

    Please Login or Register  to view this content.

  9. #9
    Forum Contributor
    Join Date
    01-28-2014
    Location
    Manchester, UK
    MS-Off Ver
    Microsoft Office 365
    Posts
    127

    Re: Move data to specific sheets based on value against a list

    Quote Originally Posted by JOHN H. DAVIS View Post
    Maybe:

    Please Login or Register  to view this content.
    I currently have all the sheets pre-hidden

    When i ran this macro the sheet the data was moved to didn't unhide itself

    Thanks

    Dave

  10. #10
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: Move data to specific sheets based on value against a list

    Try:

    Please Login or Register  to view this content.

  11. #11
    Forum Contributor
    Join Date
    01-28-2014
    Location
    Manchester, UK
    MS-Off Ver
    Microsoft Office 365
    Posts
    127

    Re: Move data to specific sheets based on value against a list

    Quote Originally Posted by JOHN H. DAVIS View Post
    Try:

    Please Login or Register  to view this content.
    That works perfectly !!

    Thanks John

    The next part of this would be to setup a macro to automatically send the relevant sheet to the relevant store via the use of outlook email as you see the storelist tab contains email addresses for each store

    Are you able to assist with this ? or would i need to create a new thread ?

    Thanks

    Dave

  12. #12
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: Move data to specific sheets based on value against a list

    You're welcome. Glad to help out and thanks for the feedback. I'm afraid the outlook is not my cup of tea, since I have Lotus Notes. Please mark this thread as solved.

    http://www.excelforum.com/forum-rule...rum-rules.html

  13. #13
    Forum Contributor
    Join Date
    01-28-2014
    Location
    Manchester, UK
    MS-Off Ver
    Microsoft Office 365
    Posts
    127

    Re: Move data to specific sheets based on value against a list

    Ok thanks for your help John

+ 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. Replies: 0
    Last Post: 08-11-2014, 02:38 PM
  2. [SOLVED] Trying to move specific range to a specific sheet based on data in certain column
    By cain2011 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 08-01-2013, 08:09 AM
  3. Move data to specific worksheet based on Column A criteria.
    By forestminuet in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-07-2013, 01:44 PM
  4. Help Needed! a macro to move specific data between sheets
    By queenieheart in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-01-2012, 11:28 AM
  5. Macro to Move Data Between Sheets Based on Columns
    By MSmithson in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-24-2011, 09:21 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