+ Reply to Thread
Results 1 to 49 of 49

Copying data to another worksheet

  1. #1
    Registered User
    Join Date
    03-27-2012
    Location
    Edmonton, Canada
    MS-Off Ver
    Excel 2007
    Posts
    43

    Copying data to another worksheet

    This may seem to have a simple solution, but when I insert a name and date in worksheet 1 , I want the info to transfer automatically to worksheet 2 in the same formatted columns, but not be modified any more when I change anything in worksheet 1. For example, with dates, right now, I am using the formula =IF(H29>0%,TODAY()) the date will automatically change each day, but I just want it for the date it occurs then stay that way, not change every day to the current date, because that will also affect the date on worksheet 2. Is there a formula that will keep the original date on worksheet 2, rather than change to the current date each time?

  2. #2
    Forum Contributor
    Join Date
    11-02-2011
    Location
    Rugby, England
    MS-Off Ver
    Office 365
    Posts
    846

    Re: Copying data to another worksheet

    Could you upload a sample sheet and i will have a look for you
    galvinpaddy

  3. #3
    Registered User
    Join Date
    03-27-2012
    Location
    Edmonton, Canada
    MS-Off Ver
    Excel 2007
    Posts
    43

    Re: Copying data to another worksheet

    See attached. The idea is when the test is completed, the date and name from the Sample Test will automatically transfer to the Sample Tracker Sheet. The data from there will then transfer automatically to the Sample Database. When you experiment with the Sample Test, you will see that as soon as you change or delete the name and date, it will also change or delete from the Sample Tracker and Sample Database sheets. I don't want the Tracker and Database info to be deleted once the test is complete, and the name deleted from Sample Test, will allow it be ready to be used for another person.
    I could just use two workbooks, one for the tests, and for the tracker. database, but I am experimenting with it this way because the database does not need to have the info on tests completed. That is what the tracker is for. I will also be adding other data to the tracker that will not be required on the database.
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    03-27-2012
    Location
    Edmonton, Canada
    MS-Off Ver
    Excel 2007
    Posts
    43

    Re: Copying data to another worksheet

    Can anybody help me with this?

  5. #5
    Forum Contributor
    Join Date
    11-02-2011
    Location
    Rugby, England
    MS-Off Ver
    Office 365
    Posts
    846

    Re: Copying data to another worksheet

    Hi, do you actually need to seperate sheets? can you combine all into one sheet and seperate using the tabs?

  6. #6
    Forum Contributor
    Join Date
    11-02-2011
    Location
    Rugby, England
    MS-Off Ver
    Office 365
    Posts
    846

    Re: Copying data to another worksheet

    Ok, working on the assumption that (for now at least) we keep all three spreadhseets, am i correct in assuming the following:

    1) You want a method of transferring the info from 'Sample Test' cells D2, D3 & D4, into the sheet 'Sample Test Tracker' (into the respective cells for name, date etc.)
    2) You dont want this info to be modified when you change the data in 'Sample Test'.
    3) You also want a way of counting how may tests the individual takes (and show the info on sheet 'Sample Test Tracker')
    4) You then want the 'Sample Database' sheet to populate with the name & date information.
    5) You want the info in cells D3 & D4 in sheet 'Sample Test' to be cleared after it has been copied.

    If all of that is correct, then i have the following questions.
    1) Can the database sheet be transferred into the test tracker sheet, on a different tab? (reducing overall spreadsheet count down to 2)
    2) Are you familiar with VBA? as VBA is the best way (in my opinion, Gurus, please correct if im wrong) to do what you want without removing or modifying the data you want to capture.
    3) On the sheet 'Sampe Test Tracker' tab named 'Instructors' where does the 'Test# Completed' info come from?


    I have some free time at present so if you can spare some time to go through the above i will try to assist asap
    galvinpaddy.
    Last edited by galvinpaddy; 04-11-2012 at 02:22 PM. Reason: additional info required

  7. #7
    Forum Contributor
    Join Date
    11-02-2011
    Location
    Rugby, England
    MS-Off Ver
    Office 365
    Posts
    846

    Re: Copying data to another worksheet

    Hi again,

    ok, having worked through what i think you are after, i have some results.
    Please see attached 2 sheets:
    Test
    Test Tracker.
    On the sheet TEST, please enter the name of the person taking the test, (the date is auto calculated) click the button ('Click to copy, save & restart')
    This will transfer the data to the sheet named TEST TRACKER (you will need to open both sheets as the same time.)
    The data will be pasted as values only, the coding is set to copy the info on TEST, paste values into TEST TRACKER, insert a new line (to always allow latest date to be at the top) the return to TEST and clear the cells containing names.
    Please let me know if this is what you are after and we can then progress your request further by adding whatever is needed.

    galvinpaddy.
    Attached Files Attached Files

  8. #8
    Registered User
    Join Date
    03-27-2012
    Location
    Edmonton, Canada
    MS-Off Ver
    Excel 2007
    Posts
    43

    Re: Copying data to another worksheet

    Hi, galvinpaddy. thanks for the help. To start with your first response at 1206pm my intent was to have the three separate workbooks. I need the Test worksheet to be separate because the person doing the test does not need to see the test tracker or instructor list. The second sheet, Test Tracker is for my own recordkeeping so i know who has been given which test. The Database is for everybody to view so they can see when they last did the test and know that in 12 months will have to do it again.

    Your assumption is correct how I would like to copy the info to the other worksheets. I am not familair with VBA. Test # completed is used to keep track of who was given what test.When I send the tests they do not have a number on them, so the member does not know which test he is getting and cannot simply keep the answers and transfer them to another person taking the test. I have 8 different tests created for this purpose. i normally have to manually record the name and test number in the Test Tracker-Instructor tab so i know which test I gave to whom. So when they do send me the completed test, I re-write the test number in the applicable column at the top of the page and the tab itself, and it will automatically transfer the test details to my Test Answer sheet (which I have already done) to give me the final results as a percentile. The member's particulars from the top of the Test worksheet and the percentage will then automatically transfer to the Test Tracker worksheet, and the particulars themselves would transfer to the Database, with the date it was completed.
    I copied the Test and Test Tracker you modified onto my desktop, opened them up and inserted the info in the Test sheet, and it worked perfectly. This may seem like a simple equation to do, but you are awesome just the same. I will definitely have to learn more about using the macros and VBA. I tried looking at the macro or whatever it was you used for the transfer of data from the Test sheet to the Test Tracker, so could you humor on that and let me know where it is so I can know what to do. I will need to do the same rom the Test Tracker to the Database worksheet. Thanks.

  9. #9
    Forum Contributor
    Join Date
    11-02-2011
    Location
    Rugby, England
    MS-Off Ver
    Office 365
    Posts
    846

    Re: Copying data to another worksheet

    ok, first, thanks for the thanks lol, you're welcome.
    So, what steps do you want to add now? explain it to me in detail so i can add it for you.
    Once its completed i will break it all down for you to easily understand, and will give you some pointers on how to start with VBA if you like, its a great tool to use but very difficult to master!

    As for humouring you - you have excel 2007? first you need the developer tab (if you already hav eit then it will be next to the word View at the top of your excel screen) if you do not have it then - click excel icon top left corner of excel, click excel options towards the bottom left of the window that opens, then tick the tick box "Show developer tab in the ribbon" & then click ok.
    Once you have it sorted, click 'Developer', click Visual Basic' and what you see opens up, is the code i wrote.
    A good way to start learning VBA/macros - Click developer tab, click 'Record Macro' name it to what you want, then have a little play with excel, select a cell, copy it , select another, paste it, highlight a selection of cells. then click on the 'Stop Recording' button, click 'Macros' click once on the one you have just created, then select edit from the right side, and what you see there is the VBA code for the sequence you have just recorded in Excel!

    Please let me know what you want adding to the sheet next and i will work on it tomorrow as its almost 2am in the UK and my little one will soon be up!
    galvinpaddy

  10. #10
    Registered User
    Join Date
    03-27-2012
    Location
    Edmonton, Canada
    MS-Off Ver
    Excel 2007
    Posts
    43

    Re: Copying data to another worksheet

    Thanks again. I will be studying and trying to understand this stuff as much as possible. As for the next step, I would need to copy the info from the Last Name, Fist Name and Dates in the Test Tracker sheet to a Database sheet, which I would like to have as a separate workbook as it will be for public viewing. I would like to have it so the names are reconfigured alphabetically rather than by date. I have tried a few methods on this, but they are not quite what I want. Once again, any help on this is greatly appreciated.
    LordVankar

  11. #11
    Forum Contributor
    Join Date
    11-02-2011
    Location
    Rugby, England
    MS-Off Ver
    Office 365
    Posts
    846

    Re: Copying data to another worksheet

    Hi,
    I will have a crack at this for you tonight/tomorrow and post back, i had already created a sheet similar to what you want so i just need to find it & finish it!

  12. #12
    Registered User
    Join Date
    03-27-2012
    Location
    Edmonton, Canada
    MS-Off Ver
    Excel 2007
    Posts
    43

    Re: Copying data to another worksheet

    To further elaborate on the Database, it would be set up so that each time the last name, first name and date are automatically transferred to the Test Tracker they are also sent automatically to the Database sheet.

  13. #13
    Forum Contributor
    Join Date
    11-02-2011
    Location
    Rugby, England
    MS-Off Ver
    Office 365
    Posts
    846

    Re: Copying data to another worksheet

    Ok fella, no worries.
    Leave it with me and if i have any questions i will let you know.
    galvinpaddy

  14. #14
    Registered User
    Join Date
    03-27-2012
    Location
    Edmonton, Canada
    MS-Off Ver
    Excel 2007
    Posts
    43

    Re: Copying data to another worksheet

    I also have an Answer sheet that automatically tells me if each answer on the Test sheet is correct or not and it gives me a percentage at the bottom. What I do with that is special copy it to a Test Results column on the Test Tracker sheet. This would also be done as each member completes a test. I had a system that worked, but it required manually inserting the formula for each of the eight different tests I could administer onto each line. For example, it would look like this for one row: ='[ANSWER SHEET.xls]AS #1'!$D$32/100. I used an IF function to copy each of these and change the AS # to reflect each of the tests and copied it onto each line in the Test Result column. But of course it created a long string.

  15. #15
    Forum Contributor
    Join Date
    11-02-2011
    Location
    Rugby, England
    MS-Off Ver
    Office 365
    Posts
    846

    Re: Copying data to another worksheet

    Hi fella,
    If you want me to incorporate that part also, i will need to see the sheet, as thats the only way i can actually ensure the code is correct.
    I dont think it would be much extra work involved to get them all running together.

  16. #16
    Registered User
    Join Date
    03-27-2012
    Location
    Edmonton, Canada
    MS-Off Ver
    Excel 2007
    Posts
    43

    Re: Copying data to another worksheet

    Ok. i have created a sample answer sheet for you. I have also included questions into the test sheet so you can see how that work,a dn two new spaces, INIT and DEPARTMENT. So, the first sheet opened is the Test worksheet, which will have the member's particulars and date of test.
    Once the Test sheet is opened, the member's info will automatically transfer to the Answer Sheet, with the exception of the date. It will also calculate the results of the test from the Test sheet and transfer that to the Test Tracker on the Test Result column. Once that is done, the info on the Answer Sheet can be deleted, ready for the next member using the same test, and the Answer Sheet can be closed.
    Also, on the Test sheet, a person can still press the button to copy the member's info to the Test Tracker sheet as you had already designed.
    So now the info is on the Test Tracker, with number data corresponding from the Test # Completed column automatically copying over from the Instructors tab to the Test Tracker tab. THis is so I know how many of a paricular test has been given to what department.
    I also want the data from the Test sheet to transfer automatically, or by the press of he button, to the Database worksheet.
    All the workbooks/worksheets will be in the same folder. So all i have once i open the Test sheet is press the button and everything will automatically transfer to ther proper forms. I should not have to open any other worksheet to see if it transferred. But I can so anyway, just to be sure it worked. That is how I want it all to work.
    I have tried a few times using the macro to modify the formula for the transfers, but I am still trying to understand some of the commands and equations and how they work, so no luck.
    Attached Files Attached Files

  17. #17
    Forum Contributor
    Join Date
    11-02-2011
    Location
    Rugby, England
    MS-Off Ver
    Office 365
    Posts
    846

    Re: Copying data to another worksheet

    Hello,

    OK, having gone through what i think is both what you are after and works (lol) please see attached.
    You must bear in mind, if you change the work sheet names the macro will NOT work, as they use the name of the sheet in them. (this can be changed)

    Please open them all, enter the information into TEST (First, last name, dept. & INIT & answers) click the button, all the rest is as they say, Magic
    The code is set to delete the info from the ANSWERS sheet after it has copied it.
    Do you also want the TEST TRACKER & ANSWER to be password protected so only people with the password can view the information & answers?

    EDIT - If when you copy the sheets to your desktop, the name appears differently than;
    ANSWER SHEET
    DATABASE
    TEST TRACKER
    TEST
    Then please rename the sheets to exactly those names for vba to work.

    galvinpaddy
    Attached Files Attached Files
    Last edited by galvinpaddy; 04-13-2012 at 06:30 AM.

  18. #18
    Registered User
    Join Date
    03-27-2012
    Location
    Edmonton, Canada
    MS-Off Ver
    Excel 2007
    Posts
    43

    Re: Copying data to another worksheet

    Awesome! It all worked perfectly. Imagine me shaking your hand right now. Thanks again. I will not need a password for the Test tracker and Answer Sheet right now, but I do know how to do that at least. Now it is just a matter of studying the equations so I understand better how it works. The parts I am having difficulty understanding are the Range ("I2:K2").Select, Range ("H2").Select for example. I have noticed that the 2 row is missing from the ANSWER and TEST worksheets which must mean it is only because of the equation being used. But why those columns and that row?

  19. #19
    Registered User
    Join Date
    03-27-2012
    Location
    Edmonton, Canada
    MS-Off Ver
    Excel 2007
    Posts
    43

    Re: Copying data to another worksheet

    Since I already have a database from previous tests completed, I should be able to re-configure the numbers in the Database and Test Test Tracker sheets to start with the new version. So if I had already done 30 people, then I would reconfigure the Test Tracker-instructors to start automating from say Row 33 onwards. Is that where the Range().Select comes into play? So it would be Range ("I33:K33").Select?

    Also, I am trying to understand why there is a paste2 function for the Macro6 and the purpose of Macro7. I may figure it out before you responc, but just in case, I wouldn't mind come clarification. Thanks.
    Last edited by LordVankar; 04-13-2012 at 11:59 AM.

  20. #20
    Forum Contributor
    Join Date
    11-02-2011
    Location
    Rugby, England
    MS-Off Ver
    Office 365
    Posts
    846

    Re: Copying data to another worksheet

    Hi, the code was written step by step, i write about 4 different macros separately, then combined them all into one.
    Where you can see Application.Run "TEST.xls!answer_fill" that is telling excel to run the macro called answer_fill.
    Row 2 is only hidden from view.
    I2:K2 = select all cells from I2 across to K2 (which is on Row 2 that is hidden from view.) I have hidden the row from view as it contains the name, dept, init info but set out in the same layout that it needs to be pasted in the other sheets.
    the part that says 'Range("H2").Select' is doing exactly that, selecting range H2.
    There is no specific reasoning behind hiding row 2, thats just the row i had the data in it could have been in any row.
    please enter lots of test data into the sheet and you will see what the code is doing on both the test tracker sheet and the database sheet.

    I'm more than happy to answer any question you have, but please be aware, i dont have a great deal of experience with VBA so there may well be a way to condense my coding to make it easier to understand.

    galvinpaddy

  21. #21
    Registered User
    Join Date
    03-27-2012
    Location
    Edmonton, Canada
    MS-Off Ver
    Excel 2007
    Posts
    43

    Re: Copying data to another worksheet

    Hello again. I have a problem with the transfer of the percentage from my Answer Sheet to the Test Tracker. I now have 25 questions on the test, but when the calculation is done, the best result comes up 20% each time, regardless of how many correct answers I insert in the Test sheet. I have tried to re-do the formula for it, but no luck.
    Also, with regard to the Test Tracker sheet, what I usually do is insert the last name, department and test number of the test given on the Test Tracker so that when the test is returned, I know which one it was. When I do that, the formula currently in the worksheet and in the macro will automatically delete it anyway once I click on the Click to Copy,. Save and Restart button in the Test sheet. I want to be able to keep the test number inserted in the Test # Completed column even when the I click on the Click to Copy, Save and Restart button in the Test sheet.
    It may seem redundant when you see Test #1 already at the header of the page, but that will be removed if I can get the Test number formula to work from the Test column in the Test sheet to the Test # Completed in the Test Tracker sheet. Use the Test Tracker from the latest post on this thread.
    Attached Files Attached Files
    Last edited by LordVankar; 04-16-2012 at 04:10 PM. Reason: Forgot to attach the Test Tracker sheet

  22. #22
    Forum Contributor
    Join Date
    11-02-2011
    Location
    Rugby, England
    MS-Off Ver
    Office 365
    Posts
    846

    Re: Copying data to another worksheet

    Hi there, the issue with the amount of questions is due to the fact i assumed you only had 10 questions, so i set the code to look in a specific range, this is the reason why i asked for data you work with
    not to worry, shouldnt be to hard to sort for you, leave it with me and i will post it back asap.
    *Changes Due* Please confirm these are correct!!!
    1) 25 questions
    2) calculation of %
    3) remove the code that adds the info into the test tracker OR simply not delete the info you type into Column E? (TEST # COMPLETED)
    4) is it possible to move the TEST # COMPLETED column to the end of the table? (so after the date column?)

    If you can get me a response to the above soon i may be able to load the modified sheet tonight

    galvinpaddy

  23. #23
    Registered User
    Join Date
    03-27-2012
    Location
    Edmonton, Canada
    MS-Off Ver
    Excel 2007
    Posts
    43

    Re: Copying data to another worksheet

    Hi. It was originally for 10 questions, because I needed to make it easy for you to do. However, my actual test is 25 questions. It was easy enough to convert that but the percentages are giving me the problem. So to answer your questions:
    1) Yes
    2) Yes
    3) Yes
    4) Yes

    Also, how does one access row 2 where the equations have been hidden? Or does it do it automatically based on what I insert for an equation in a particular row/column?

  24. #24
    Registered User
    Join Date
    03-27-2012
    Location
    Edmonton, Canada
    MS-Off Ver
    Excel 2007
    Posts
    43

    Re: Copying data to another worksheet

    I have already figured out the test number so questions 3 and 4 are covered. I managed to figure out how to simply unhide the row, which would then show the equation in the highlighted sections you had and just added the equation for column J4. However, I am still working on the test percentage problem. But any help is still appreciated.

  25. #25
    Forum Contributor
    Join Date
    11-02-2011
    Location
    Rugby, England
    MS-Off Ver
    Office 365
    Posts
    846

    Re: Copying data to another worksheet

    hi, ok.
    First off, thanks for simplifying it to start with

    Please see attached, these should cover the changes you mentioned and issues you encountered.
    please let me know if you would like anything else

    galvinpaddy
    Attached Files Attached Files

  26. #26
    Forum Contributor
    Join Date
    11-02-2011
    Location
    Rugby, England
    MS-Off Ver
    Office 365
    Posts
    846

    Re: Copying data to another worksheet

    apologies, On the sheet named TEST - please hide column 'R' as i forgot before i loaded.
    Last edited by galvinpaddy; 04-16-2012 at 05:07 PM. Reason: additional info

  27. #27
    Registered User
    Join Date
    03-27-2012
    Location
    Edmonton, Canada
    MS-Off Ver
    Excel 2007
    Posts
    43

    Re: Copying data to another worksheet

    No problem. In fact, if you didn't have that revealed, it would have taken me a little longer to get the calculations to work, but now it all works they way I like. Thanks again.

  28. #28
    Forum Contributor
    Join Date
    11-02-2011
    Location
    Rugby, England
    MS-Off Ver
    Office 365
    Posts
    846

    Re: Copying data to another worksheet

    Glad i could help!
    Let me know if you have any more questions

  29. #29
    Registered User
    Join Date
    03-27-2012
    Location
    Edmonton, Canada
    MS-Off Ver
    Excel 2007
    Posts
    43

    Re: Copying data to another worksheet

    As a matter of fact I do have another question. I am going to change my worksheet titles with the prefix IST, such as IST Test, etc. So I have made the changes to the worksheets and in the answer_fill, copy_paste and in macro 6 and 7 as well as the macros for Test Tracker and Answe Sheet, but I get the window error for the following line to end or debug:

    Application.Run "IST TEST.xls!answer_fill"

    How do I fix that? Do I need to change the answer_fill to another name?

  30. #30
    Forum Contributor
    Join Date
    11-02-2011
    Location
    Rugby, England
    MS-Off Ver
    Office 365
    Posts
    846

    Re: Copying data to another worksheet

    hi, i wont have time to look at this tonight, i will do it tomorrow morning for you and repost
    galvinpaddy

  31. #31
    Registered User
    Join Date
    03-27-2012
    Location
    Edmonton, Canada
    MS-Off Ver
    Excel 2007
    Posts
    43

    Re: Copying data to another worksheet

    Just so you know I have tried to change it to istanswer_fill or ist answer_fill and no luck so far.

  32. #32
    Registered User
    Join Date
    03-27-2012
    Location
    Edmonton, Canada
    MS-Off Ver
    Excel 2007
    Posts
    43

    Re: Copying data to another worksheet

    Roger that.

  33. #33
    Forum Contributor
    Join Date
    11-02-2011
    Location
    Rugby, England
    MS-Off Ver
    Office 365
    Posts
    846

    Re: Copying data to another worksheet

    ok, morning fella.

    I have now renamed all sheets and macros.
    IST TEST
    IST TEST TRACKER
    IST DATABASE
    IST ANSWER SHEET

    I have also added an image (named changes) to begin to explain what you have to do if you want to change the work sheet names again.
    The part that reads - Windows("IST TEST TRACKER.xls").Activate
    If you change the work sheets to start with ABC, you would need to swap every single instance of IST with ABC, on EVERY macro module - you would need to have all sheets open to ensure you change them all, as one mistake can stop the whole process from running how it should and may produce different/wrong/no results

    Let me know how you get on and if you need more help.
    galvinpaddy
    Attached Images Attached Images
    Attached Files Attached Files

  34. #34
    Registered User
    Join Date
    03-27-2012
    Location
    Edmonton, Canada
    MS-Off Ver
    Excel 2007
    Posts
    43

    Re: Copying data to another worksheet

    Ok. I figured out why I could not do anything once the titles changed. It was because when I was playing with the answer_fill label, the ' ' were missing from it. i also managed to figure out the equations and managed to get everything working the way I need. My next challenge is creating mutliple tests and a worksheet with multiple tabs for the answer sheets to match each of the tests. Should not be a problem creating them so much as ensuring they will link to the IST Test Tracker and IST Database sheets. More to follow on that.

  35. #35
    Registered User
    Join Date
    03-27-2012
    Location
    Edmonton, Canada
    MS-Off Ver
    Excel 2007
    Posts
    43

    Re: Copying data to another worksheet

    Ok. This is great. I figured out why I could not do anything once the titles changed. It was because when I was playing with the answer_fill label, the ' ' were missing from it. i also managed to figure out the equations and managed to get everything working the way I need. My next challenge is creating mutliple tests and a worksheet with multiple tabs for the answer sheets to match each of the tests. Should not be a problem creating them so much as ensuring they will link to the IST Test Tracker and IST Database sheets. More to follow on that.

  36. #36
    Forum Contributor
    Join Date
    11-02-2011
    Location
    Rugby, England
    MS-Off Ver
    Office 365
    Posts
    846

    Re: Copying data to another worksheet

    good good, if you need any help on something just shout fella and i'll help if i can

    galvinpaddy

  37. #37
    Registered User
    Join Date
    03-27-2012
    Location
    Edmonton, Canada
    MS-Off Ver
    Excel 2007
    Posts
    43

    Re: Copying data to another worksheet

    So far no luck with creating links to the multiple tests. What I want to do is a have several TEST sheets, say labeled , IST TEST 01, IST TEST 02, etc. In the ANSWER SHEET I would have the tabs labeled as TEST #1, TEST #2, etc. So what will happen is the questions from IST TEST 01 will link to the TEST #1 tab in the ANSWER SHEET to get the right answers, like I have now, but I need to do that for the other tests. The links would also work to the IST TEST TRACKER and IST DATABASE sheets where the data from any one of the TEST Sheets will automatically transfer to the TEST TRACKER abd DATABASE. What is the macro equation for that. I am still working on it, but still having trouble making a link just from the IST TEST sheet.

  38. #38
    Forum Contributor
    Join Date
    11-02-2011
    Location
    Rugby, England
    MS-Off Ver
    Office 365
    Posts
    846

    Re: Copying data to another worksheet

    You cant do it yet because all of the macro codes are linked to another one at various and multiple stages.

    With VBA codes, the best way to edit a code is to be the one who created it, especially in this scenario, because the best you can do is guess at what has been done
    Send me a complete list of what you want - step by step. And how you want it to look when it is finished.
    You will need to create all of the sheets and how you want each one to look, i will do what i can to start the code from scratch and create it in a manner that is both easier for you to read, understand & modify.
    To make it easier for me, please give me all FINAL details - final sheet names/layouts/qty of questions etc etc.
    I can send you my email if there is information present that you dont want available to the general public.

    As i have already stated, i will do whatever i can to help, but you must be aware, i am no Excel guru lol so there may be things i cant do
    galvinpaddy

  39. #39
    Registered User
    Join Date
    03-27-2012
    Location
    Edmonton, Canada
    MS-Off Ver
    Excel 2007
    Posts
    43

    Re: Copying data to another worksheet

    Attached are the main four excel documents. For the IST TEST I have added a few extra rows for a member's particulars which has been calculated into the macro and it works. I have also included a Test number in J1, which is to remain hidden. The tab at the bottom of the sheet will just say Test.
    For teh IST ANSWER Sheet, I have five Test tabs, each of them and their answers to match to the respective IST TEST questions. I did not number IST TEST as 01 yet, but that matches to the tab labeled Test #1, of course. I will send the other 4 IST TESTS I have created right away.
    Attached Files Attached Files

  40. #40
    Registered User
    Join Date
    03-27-2012
    Location
    Edmonton, Canada
    MS-Off Ver
    Excel 2007
    Posts
    43

    Re: Copying data to another worksheet

    Here are the other 4 IST TESTS. My intent is to be able to send an IST TEST to a member by e-mail and receive it back by e-mail with his particulars and test answers on it. I will then save the test into the IST Folder with the other IST documents, open it, click on the button and the idea is for it to automatically detect the respective Test # tab in the IST ANSWER SHEET and calculate the results, which would then automatically go to the IST TEST TRACKER and the particulars and test date to the IST DATABASE, as already programmed.

    Although, you say you may not be a guru, you have done very well so far in helping me out with this, so I have faith in you.
    Attached Files Attached Files

  41. #41
    Forum Contributor
    Join Date
    11-02-2011
    Location
    Rugby, England
    MS-Off Ver
    Office 365
    Posts
    846

    Re: Copying data to another worksheet

    Thansk for that fella.
    I have them all on my desktop so will get cracking! cant promise i will be able to do it all, but if not i will make sure you know
    galvinpaddy

  42. #42
    Forum Contributor
    Join Date
    11-02-2011
    Location
    Rugby, England
    MS-Off Ver
    Office 365
    Posts
    846

    Re: Copying data to another worksheet

    Hi Again, sry - Do you actually need the cell - INIT? i dont really need to know why, just need to know if it serves a purpose.

  43. #43
    Registered User
    Join Date
    03-27-2012
    Location
    Edmonton, Canada
    MS-Off Ver
    Excel 2007
    Posts
    43

    Re: Copying data to another worksheet

    Sorry but the INIT does serve a purpose in muy line of work so I will need it. As for IST TESTS 2-5, I have found a few corrections that needed to be made, and what I did was any line that had IST TEST in it, I added the test number, such as Windows("IST TEST 02.xls").Activate. I also added a line for the IST ANSWER SHEET, such as Sheets("TEST #2").Select, below each IST ANSWER SHEET activate line. The results was that when I have all the excel windows open, I can use any one test and it will automatically calculate the data through the respective IST ANSWER sheet test tab and transfer the results to the IST TRACKER and IST DATABASE sheets. So that works so far. Now to try e-mailing it out and getting it back and trying to do the same wihout losing the data.
    Sorry if I am already getting ahead of you on this when I asked for help, but I am sure I will still need some assistance with this. As you can see I am slowly but surely getting used to how the equations work in macros. the amended sheets are attached.
    Attached Files Attached Files

  44. #44
    Forum Contributor
    Join Date
    11-02-2011
    Location
    Rugby, England
    MS-Off Ver
    Office 365
    Posts
    846

    Re: Copying data to another worksheet

    Hi, perhaps you could simply email out the generic sheet (attached) one with NO coding, then have all the code on the Answer sheet, so you would open the sheet they send you back and the answer sheet, click the button ans the code sorts the rest.
    Would this work for you?
    Attached Files Attached Files

  45. #45
    Registered User
    Join Date
    03-27-2012
    Location
    Edmonton, Canada
    MS-Off Ver
    Excel 2007
    Posts
    43

    Re: Copying data to another worksheet

    I just want to confirm you are saying that the coding would be on the answer sheet with the button to do the transfer. So open the Answer Sheet and Test sheet being used, press the button on the answer sheet and it calculates. That would work for me. If there is another method without pressing a button but once the test sheet appears in the same folder as the Answer Sheet it would still calculate and transfer automatically, that would also work for me.

  46. #46
    Registered User
    Join Date
    03-27-2012
    Location
    Edmonton, Canada
    MS-Off Ver
    Excel 2007
    Posts
    43

    Re: Copying data to another worksheet

    Well I did manage to conver the button to the Answer Sheets, and it did work. However, whenever I try to send the test to myself, insert the answers and send it back, most of the time I cannot transfer the test data, and I end up having to create that test all over again, because it seems to have lost its link. I have also tried copying the files from one computer to another, but that was unsuccessful as the files seem to be missing the link to the copy_paste functions at least. Another issue I am trying to do is set up the IST DATABASE so it will automatically transfer the text to UPPER CASE. I have looked it up in the forum, but I am trying to figure out how to apply that formula to the macros.
    Anyone have any ideas for any of my issues?

  47. #47
    Forum Contributor
    Join Date
    11-02-2011
    Location
    Rugby, England
    MS-Off Ver
    Office 365
    Posts
    846

    Re: Copying data to another worksheet

    Afternoon fella,

    Apologies for disappearing on you with this. not intentional fella, real life caugth up with me!!

    For the part of changing all to uppercase try the following - right click on the databse tab, click view code and paste the below. then run the macro.
    Please Login or Register  to view this content.
    Source
    Last edited by galvinpaddy; 05-01-2012 at 11:50 AM. Reason: added source

  48. #48
    Registered User
    Join Date
    03-27-2012
    Location
    Edmonton, Canada
    MS-Off Ver
    Excel 2007
    Posts
    43

    Re: Copying data to another worksheet

    No problem on taking care of the real life issues. Glad to hear form you again. I have been doing a lot of experimenting and had it working for the most part. I will get to the upper case function soon, but my main issue right now is when I send a copy of the excel test to myself, fill in the answers and send it back, sometimes it works when I press the button on the ANSWER SHEET and most times does not work. I end up having to copy the test questions over again on that test and then it works again. Why is that? I haven't been able to figure it out yet. It is the one thing keeping me from completing this project. I think the other issue with that is if I try to save a copy of the test in another folder but within that folder, the test is just labeled as IST TEST, it does not work, even when I save it back to its original excel worksheet and title. Any suggestions for that problem?

  49. #49
    Registered User
    Join Date
    03-27-2012
    Location
    Edmonton, Canada
    MS-Off Ver
    Excel 2007
    Posts
    43

    Re: Copying data to another worksheet

    Unfortunately, the allcpas formula you provided did not work, but I did find one that did,

    Private Sub Worksheet_Change(ByVal Target As Excel.Range)
    If Target.Column > 26 Then Exit Sub
    On Error GoTo ErrHandler
    Application.EnableEvents = False
    Target.Formula = UCase(Target.Formula)
    ErrHandler:
    Application.EnableEvents = True
    End Sub

    So I have that working, as well as auto enable for my multiple workbooks and now I am working on trying to automatically send an e-mail message when a person reaches a certain percentage on the test. If they pass, they get a pass message. if they fail, they get a fail message. I am inserting that into the IST TEST TRACKER sheet.

+ 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