+ Reply to Thread
Results 1 to 40 of 40

Each row targets a new worksheet

  1. #1
    Forum Contributor
    Join Date
    12-08-2012
    Location
    USA
    MS-Off Ver
    Excel 365
    Posts
    188

    Each row targets a new worksheet

    I am looking for a way to fill cells on one sheet with data from another, which is easy enough, but I have to be able to target the new worksheet without having to modify the code. here is what I mean.




    Genus Species
    "targets cell B1 of workbook 2" "targets cell B2 of workbook 2"[/
    "targets cell B1 of workbook 3"[/ "targets cell B1 of workbook 3"[/
    ect.

    also is there a way to have each sheet that I create have the sheet name be equal to a specific cell on that sheet?
    Last edited by Sparkplug90; 01-10-2014 at 07:36 PM.

  2. #2
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,776

    Re: Each row targets a new worksheet

    Really I am confused about what you are looking for


    If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
    Mark your thread as Solved


    If the suggestion helps you, then Click *below to Add Reputation

  3. #3
    Valued Forum Contributor
    Join Date
    01-19-2010
    Location
    Melbourne Australia
    MS-Off Ver
    latest is Excel 2016. have older versions
    Posts
    624

    Re: Each row targets a new worksheet

    It would help if you could post an example of the spreadsheet with clear explanation on what you have already and expect the macro to do
    Jmac1947

  4. #4
    Forum Contributor
    Join Date
    12-08-2012
    Location
    USA
    MS-Off Ver
    Excel 365
    Posts
    188

    Re: Each row targets a new worksheet

    sorta figured it would be confusing

    I want to have one sheet that as I create a new sheet data froim that sheet gets entered into the main record sheet. and each sheet tht I create will have the sheet name set to a certain cell on that sheet

    sheet to come....

  5. #5
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,776

    Re: Each row targets a new worksheet

    Attach a sample workbook. Make sure there is just enough data to make it clear what is needed. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are demonstrated, mock them up manually if needed. Remember to desensitize the data.

    Click on GO ADVANCED and use the paperclip icon to open the upload window.

    View Pic

  6. #6
    Forum Contributor
    Join Date
    12-08-2012
    Location
    USA
    MS-Off Ver
    Excel 365
    Posts
    188

    Re: Each row targets a new worksheet

    tarantulas test1.xlsx

    here is an example of what im looking for

  7. #7
    Forum Contributor
    Join Date
    12-08-2012
    Location
    USA
    MS-Off Ver
    Excel 365
    Posts
    188

    Re: Each row targets a new worksheet

    Attachment 288598

    here is an example of what im looking for

  8. #8
    Valued Forum Contributor
    Join Date
    01-19-2010
    Location
    Melbourne Australia
    MS-Off Ver
    latest is Excel 2016. have older versions
    Posts
    624

    Re: Each row targets a new worksheet

    so I think you are looking for this:

    A new "record" is created by filling in the fields on the "template tab", you then would like to press a "macro button" and have a new tab created (with name from field in template tab) and the data copied from the template and also added into the summary page at the same time.

    Is this a reasonable summary of needs, if so it doesn't look to difficult and shouldn't take me very long to complete

    One additional question, is this only to apply to new entries, that is can I ignore and existing tabs and just assume you will have updated the summary page previously?

    Jmac1947
    Last edited by jmac1947; 01-09-2014 at 02:22 AM.

  9. #9
    Forum Contributor
    Join Date
    12-08-2012
    Location
    USA
    MS-Off Ver
    Excel 365
    Posts
    188

    Re: Each row targets a new worksheet

    I think that's what I want...XD

  10. #10
    Valued Forum Contributor
    Join Date
    01-19-2010
    Location
    Melbourne Australia
    MS-Off Ver
    latest is Excel 2016. have older versions
    Posts
    624

    Re: Each row targets a new worksheet

    tarantulas test1.xlsm

    Sparkplug90

    Take a look at the attached spreadsheet and see if that is what you are looking for.

    The plan is... you go to the template tab and enter the details for the new "thing", click the "start" icon and it should do what you are looking for.

    Jmac1947

  11. #11
    Forum Contributor
    Join Date
    12-08-2012
    Location
    USA
    MS-Off Ver
    Excel 365
    Posts
    188

    Re: Each row targets a new worksheet

    OMG that is amazing.

    only one issue is that the "start button" stays on the newly created shet any way to make it leave if not that's ok I can deal with that....just wondering

  12. #12
    Forum Contributor
    Join Date
    12-08-2012
    Location
    USA
    MS-Off Ver
    Excel 365
    Posts
    188

    Re: Each row targets a new worksheet

    oh and also is there a way I can add an "auto quary" type function to it so that the summary sheet requarys regularly to keep it up to data?

  13. #13
    Valued Forum Contributor
    Join Date
    01-19-2010
    Location
    Melbourne Australia
    MS-Off Ver
    latest is Excel 2016. have older versions
    Posts
    624

    Re: Each row targets a new worksheet

    OK.
    OOps, that is a whole page copy rather than a range copy, sorry, will fix and repost

    not sure i understand your last post, each time you add a new "tab" by executing the macro (ie push the button) the summary will be updated unless I have missed something

    jmac1947
    Last edited by jmac1947; 01-09-2014 at 04:29 AM.

  14. #14
    Forum Contributor
    Join Date
    12-08-2012
    Location
    USA
    MS-Off Ver
    Excel 365
    Posts
    188

    Re: Each row targets a new worksheet

    what I ment in the last post was is ther a way to make sure the previus "records/rows" on the summary shet kept up to date if I add or change the info on their respective record sheet

  15. #15
    Valued Forum Contributor
    Join Date
    01-19-2010
    Location
    Melbourne Australia
    MS-Off Ver
    latest is Excel 2016. have older versions
    Posts
    624

    Re: Each row targets a new worksheet

    OK, understand, question, are you the owner and sole updater of the spreadsheet or are there other users to consider?

    The answer impact how I might resolve your latest requirement

    jmac1947

  16. #16
    Forum Contributor
    Join Date
    12-08-2012
    Location
    USA
    MS-Off Ver
    Excel 365
    Posts
    188

    Re: Each row targets a new worksheet

    im the sole user of it..its to keep track of all my tarantulas..currently 70+

  17. #17
    Valued Forum Contributor
    Join Date
    01-19-2010
    Location
    Melbourne Australia
    MS-Off Ver
    latest is Excel 2016. have older versions
    Posts
    624

    Re: Each row targets a new worksheet

    OK, here is a plan,

    When you update a single page (or even multiple pages) you go back to the Summary page and execute a different macro that goes through each page and updates the summary p[age, that way you can do multiple adds / changes to individual pages and select when to update the summary page??

    Sound plausible??

    jmac1947

  18. #18
    Forum Contributor
    Join Date
    12-08-2012
    Location
    USA
    MS-Off Ver
    Excel 365
    Posts
    188

    Re: Each row targets a new worksheet

    ya that sounds awesome man

  19. #19
    Forum Contributor
    Join Date
    12-08-2012
    Location
    USA
    MS-Off Ver
    Excel 365
    Posts
    188

    Re: Each row targets a new worksheet

    hows it coming?

  20. #20
    Valued Forum Contributor
    Join Date
    01-19-2010
    Location
    Melbourne Australia
    MS-Off Ver
    latest is Excel 2016. have older versions
    Posts
    624

    Re: Each row targets a new worksheet

    it is about 21:30 and I have had dinner and a couple of drinks, will get back to the problem in the morning.

    I might be a good plan for you to post a full spreadsheet (or email me directly, address is in the macro you currently have) to ensure you start off with a working version

    John

  21. #21
    Forum Contributor
    Join Date
    12-08-2012
    Location
    USA
    MS-Off Ver
    Excel 365
    Posts
    188

    Re: Each row targets a new worksheet

    gotcha thx man I hear ya its 420 in the morning ill hit ya up in the morning ur time then and I appreciate the help

  22. #22
    Forum Contributor
    Join Date
    12-08-2012
    Location
    USA
    MS-Off Ver
    Excel 365
    Posts
    188

    Re: Each row targets a new worksheet

    morning man hows everyoine

  23. #23
    Valued Forum Contributor
    Join Date
    01-19-2010
    Location
    Melbourne Australia
    MS-Off Ver
    latest is Excel 2016. have older versions
    Posts
    624

    Re: Each row targets a new worksheet

    Howdy,
    I have it nearly working although I have run into two problems. The first is that I cannot (on my current work computer) seem to get images attached to macros, will need to resolve that when i get home tonight I suspect.
    The second problem is to do with the tab names on the sample spreadsheet you sent. In the end I had to resort to actually retyping the tab names to get the macro to work so you may have a maintenance issue to start with so again, it would be easier if you can send me the complete current spreadsheet you have and I will ensure that it works correctly before I close the case
    Jmac

  24. #24
    Forum Contributor
    Join Date
    12-08-2012
    Location
    USA
    MS-Off Ver
    Excel 365
    Posts
    188

    Re: Each row targets a new worksheet

    ok will do ill get that to you in a bit
    getting ready to head to wrok atm thats where i was working on it lsat night

  25. #25
    Forum Contributor
    Join Date
    12-08-2012
    Location
    USA
    MS-Off Ver
    Excel 365
    Posts
    188

    Re: Each row targets a new worksheet

    tarantulas test.xlsx

    this is as far as i have for information transcribbed down...

  26. #26
    Valued Forum Contributor
    Join Date
    01-19-2010
    Location
    Melbourne Australia
    MS-Off Ver
    latest is Excel 2016. have older versions
    Posts
    624

    Re: Each row targets a new worksheet

    Thanks for the updated spreadsheet
    I note that you havent assigned any "identifier" values to the summary tab.
    Do you have any specific format of identifier in mind or should I wait until you finish the summary data tab

  27. #27
    Forum Contributor
    Join Date
    12-08-2012
    Location
    USA
    MS-Off Ver
    Excel 365
    Posts
    188

    Re: Each row targets a new worksheet

    ya the identifiers ware going to all be setup like this

    "Ps-Ir-01"

    all will have the same setup
    2 char - 2 char - 2 numbers

  28. #28
    Valued Forum Contributor
    Join Date
    01-19-2010
    Location
    Melbourne Australia
    MS-Off Ver
    latest is Excel 2016. have older versions
    Posts
    624

    Re: Each row targets a new worksheet

    OK, I suggest that you dont bother to add the individual sheets for each entry at this point. If you finish the summary sheet, including identifiers, and send it to me I will use that info to create a base version with the macro included and then you are on your own

  29. #29
    Forum Contributor
    Join Date
    12-08-2012
    Location
    USA
    MS-Off Ver
    Excel 365
    Posts
    188

    Re: Each row targets a new worksheet

    ok ill get that to you here soon

  30. #30
    Forum Contributor
    Join Date
    12-08-2012
    Location
    USA
    MS-Off Ver
    Excel 365
    Posts
    188

    Re: Each row targets a new worksheet

    tarantulas test.xlsx
    here you go..and again thank you for all the help thus far man

  31. #31
    Valued Forum Contributor
    Join Date
    01-19-2010
    Location
    Melbourne Australia
    MS-Off Ver
    latest is Excel 2016. have older versions
    Posts
    624

    Re: Each row targets a new worksheet

    hey dude, this isnt my field (not into tarantulas much I have to say) but your latest spreadsheet seems to have reversed the Species and Genus columns.

    I have no idea which version is correct but it doe3s look like you may have simply got the headings wrong based on your previous data

    don't want to load them all up wrong if I can avoid it

    Please confirm that the data in row 2 of your spreadsheet matches the headings in row 1
    Jmac

  32. #32
    Forum Contributor
    Join Date
    12-08-2012
    Location
    USA
    MS-Off Ver
    Excel 365
    Posts
    188

    Re: Each row targets a new worksheet

    wow great catch man..i had reversed them XD

  33. #33
    Valued Forum Contributor
    Join Date
    01-19-2010
    Location
    Melbourne Australia
    MS-Off Ver
    latest is Excel 2016. have older versions
    Posts
    624

    Re: Each row targets a new worksheet

    so to be 1000% sure, Acanthoscurria is a Genus, geniculata is a species, that is you have the heading ling wrong??

  34. #34
    Forum Contributor
    Join Date
    12-08-2012
    Location
    USA
    MS-Off Ver
    Excel 365
    Posts
    188

    Re: Each row targets a new worksheet

    yes acathoscurria is the genus

  35. #35
    Valued Forum Contributor
    Join Date
    01-19-2010
    Location
    Melbourne Australia
    MS-Off Ver
    latest is Excel 2016. have older versions
    Posts
    624

    Re: Each row targets a new worksheet

    Sparkplug90,
    Here is the final version with the data loaded. Note that in your last spreadsheet (around rows 40-45 from memory) there were a couple of duplicate identifiers and a couple of sequence numbers missed so I took an educated guess as to what the right data should be (you cannot have duplicate tabs).

    enjoy

    Jmac1947
    Tarantulas (Final Version).xlsm

    if this has resolved your problem please mark the thread as solved using the thread tools and if you are happy with my assistance then please consider clicking on the *Add Reputation icon

  36. #36
    Forum Contributor
    Join Date
    12-08-2012
    Location
    USA
    MS-Off Ver
    Excel 365
    Posts
    188

    Re: Each row targets a new worksheet

    thx jmac i appreciate your extreamly knowledgable help

  37. #37
    Forum Contributor
    Join Date
    12-08-2012
    Location
    USA
    MS-Off Ver
    Excel 365
    Posts
    188

    Re: Each row targets a new worksheet

    this is amazing man i appreciate the time you put into all of this

    have a question i cna do some vba and some formulas on my own would u advise vba or a v lookup function to get the date last fed for each of the recods?

  38. #38
    Valued Forum Contributor
    Join Date
    01-19-2010
    Location
    Melbourne Australia
    MS-Off Ver
    latest is Excel 2016. have older versions
    Posts
    624

    Re: Each row targets a new worksheet

    where is the date last fed kept? I am assuming it is somewhere in each of the individual sheets. Is it in a constant cell in each sheet?

    If I assume that it is in each sheet and always in the same cell (that is you overwrite it each time you feed rather than keep a history of each feed) then I would simply add a column to the Summary tab and add a bit of code into the "update all records" macro to update that field from the individual tab to the summary tab, should be about 2-4 lines of code max.

    Even if my assumptions are not quite right, I would still opt to do VBA code in the existing "update all records" macro

  39. #39
    Forum Contributor
    Join Date
    12-08-2012
    Location
    USA
    MS-Off Ver
    Excel 365
    Posts
    188

    Re: Each row targets a new worksheet

    see it would be a history imma modify the sheets to contain a dropdown list so that i cna chose from a catagory of certain things that are done, molt, feed, breed,...i cna do that
    then on the summary sheet it would have the most recent displayed. but each ones own sheet would have thier entire history.

  40. #40
    Valued Forum Contributor
    Join Date
    01-19-2010
    Location
    Melbourne Australia
    MS-Off Ver
    latest is Excel 2016. have older versions
    Posts
    624

    Re: Each row targets a new worksheet

    lets take this offline, my email address is in the macro code

+ 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. Targets
    By Vokean in forum Excel General
    Replies: 7
    Last Post: 09-16-2012, 08:53 PM
  2. Conditional Targets
    By serovajoe in forum Excel General
    Replies: 1
    Last Post: 11-24-2010, 04:17 PM
  3. Dynamic Targets
    By marko71 in forum Excel General
    Replies: 3
    Last Post: 07-03-2008, 12:24 PM
  4. Sum To Work Out Targets
    By Mikey2005 in forum Excel General
    Replies: 1
    Last Post: 02-23-2006, 04:40 PM
  5. Event macro that targets specific worksheet
    By retseort in forum Excel General
    Replies: 3
    Last Post: 02-20-2006, 10:47 AM

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