+ Reply to Thread
Results 1 to 58 of 58

Recording on to another worksheet

  1. #1
    Registered User
    Join Date
    05-05-2021
    Location
    United Kingdom
    MS-Off Ver
    Office 365
    Posts
    45

    Recording on to another worksheet

    Hi,

    Please take a look at the below screenshot (I have a table for each week of the year) of a roster:

    excelrosterhelp.png

    Where AL (Annual Leave is inputted) I need to record (on a separate sheet) the date of the AL. AL is inputted below the scheduled worktime normally but we currently have no system to record these dates. I need something that will show (for each person) the dates where 'AL is inputted'.

    So for example David has AL submitted for thursday 22/02, I need this date recorded on another sheet.

    Any help will be much appreciated.

    Thank you,

    H
    Last edited by hboss_1; 05-12-2021 at 07:47 AM.

  2. #2
    Forum Expert
    Join Date
    02-11-2014
    Location
    New York
    MS-Off Ver
    Excel 365 (Windows)
    Posts
    5,942

    Re: Recording on to another worksheet

    1) Copy this code.
    2) Open the VBE (press Alt-F11)
    3) Select your workbook in the project explorer
    4) Double-click the ThisWorkbook object
    5) Paste the code into the window that appears.
    6) Save the file as a macro-enabled .xlsm file.

    Change "Name of the sheet where the data is stored" to the actual name of your separate summary sheet - I have assumed that you want the name in column A, and the date in column B


    Please Login or Register  to view this content.
    Bernie Deitrick
    Excel MVP 2000-2010

  3. #3
    Registered User
    Join Date
    05-05-2021
    Location
    United Kingdom
    MS-Off Ver
    Office 365
    Posts
    45

    Re: Recording on to another worksheet

    Hi,

    Thank you for your response!

    I have put the code in and inputted a separate sheet name as you said but nothing is happening? Do I need to play the macro ? I'm not sure what else I have to do?

    Thank you,

    H

  4. #4
    Registered User
    Join Date
    05-05-2021
    Location
    United Kingdom
    MS-Off Ver
    Office 365
    Posts
    45

    Re: Recording on to another worksheet

    Hi,

    Thank you for your response!

    I have put the code in and inputted a separate sheet name as you said but nothing is happening? Do I need to play the macro ? I'm not sure what else I have to do??

    Thank you,

    H

  5. #5
    Forum Expert
    Join Date
    02-11-2014
    Location
    New York
    MS-Off Ver
    Excel 365 (Windows)
    Posts
    5,942

    Re: Recording on to another worksheet

    If you followed my instructions correctly, and have enabled macros, whenever you type AL into a cell on one of your sheets, the name and date should be recorded on the sheet you specified.

  6. #6
    Registered User
    Join Date
    05-05-2021
    Location
    United Kingdom
    MS-Off Ver
    Office 365
    Posts
    45

    Re: Recording on to another worksheet

    It is giving a 'Compile Error: Block if without End if' error? Any Ideas?

  7. #7
    Registered User
    Join Date
    05-05-2021
    Location
    United Kingdom
    MS-Off Ver
    Office 365
    Posts
    45

    Re: Recording on to another worksheet

    Hi,

    The file is here (non macro version): Excel Roster Help.xlsx

    Please could you take a look?

    Thank you,

    H

  8. #8
    Registered User
    Join Date
    05-05-2021
    Location
    United Kingdom
    MS-Off Ver
    Office 365
    Posts
    45

    Re: Recording on to another worksheet

    Hi Bernie,

    I got it to work! ANNND it is brilliant!

    Thank you so much!

    Is there any way that the recordings are removed if the annual leave is removed, say down the line a leave day is cancelled and change it on the roster?

    Thank you,

    H

  9. #9
    Forum Expert
    Join Date
    02-11-2014
    Location
    New York
    MS-Off Ver
    Excel 365 (Windows)
    Posts
    5,942

    Re: Recording on to another worksheet

    Sure, but that would require a temporary special entry.

    Let's say that you had a cell with AL, and you want to cancel it. Use this code and enter - oh, let's say CAL for Cancel Annual Leave - and then the code will remove the corresponding entry from your record sheet and clear out the CAL from the cell where you just entered it.

    Give it a try and let me know if it works.

    Oh, and sorry about the missing End If - don't know what happened to it

    Please Login or Register  to view this content.
    Last edited by Bernie Deitrick; 05-10-2021 at 10:41 AM.

  10. #10
    Registered User
    Join Date
    05-05-2021
    Location
    United Kingdom
    MS-Off Ver
    Office 365
    Posts
    45

    Re: Recording on to another worksheet

    Hi Bernie,

    This is absolutely Brilliant, you are a genius!! It works Perfectly


    Thank you,

    H

  11. #11
    Registered User
    Join Date
    05-05-2021
    Location
    United Kingdom
    MS-Off Ver
    Office 365
    Posts
    45

    Re: Recording on to another worksheet

    Hi Bernie,

    It works great, the only one thing is if I have several tables on the worksheet (for each week), when I put AL into one of the others ones (not the top one) it will pick up the date from only the top table, you will see what I mean by tables on one sheet here: Attachment 731896

    I want the date at the top of each table, as you've done, but just not for the top table.

    Sorry for being such a pest!

    H

  12. #12
    Forum Expert
    Join Date
    02-11-2014
    Location
    New York
    MS-Off Ver
    Excel 365 (Windows)
    Posts
    5,942

    Re: Recording on to another worksheet

    Try it like this - I have assumed that the date is in the second row of each table, each table has names in the column B of the sheet, and that there is at least one entirely blank row between tables. (Your attachment didn't work.... so if your layout is different, let me know.)

    Please Login or Register  to view this content.
    Last edited by Bernie Deitrick; 05-10-2021 at 01:48 PM.

  13. #13
    Registered User
    Join Date
    05-05-2021
    Location
    United Kingdom
    MS-Off Ver
    Office 365
    Posts
    45

    Re: Recording on to another worksheet

    Hi Bernie,

    This seems to work brilliantly, but an issue I'm having is that if put AL into a table further down it does get recorded on the separate sheet but it is being recorded 3/4/5 times (duplicates), once again sorry for being such a pest but do you know why this is happening?

    Thank you again Bernie,

    H

  14. #14
    Registered User
    Join Date
    05-05-2021
    Location
    United Kingdom
    MS-Off Ver
    Office 365
    Posts
    45

    Re: Recording on to another worksheet

    Hey Bernie,

    I think (fingers crossed) it's working okay now. You have been a lifesaver! Whilst I have your expertise here, is there any way to almost click buttons (one for each month) to show me only that months tables. If I am clutching at straws please ignore this but I am just wondering about the endless possibilities after your brilliant work here!

    Thank you,

    H

  15. #15
    Forum Expert
    Join Date
    02-11-2014
    Location
    New York
    MS-Off Ver
    Excel 365 (Windows)
    Posts
    5,942

    Re: Recording on to another worksheet

    Did you figure out why you were getting duplicates? I think the code wasn't the source, since it worked fine for me.

    As far as using buttons - that easy, but the code would be highly dependent on your workbook structure. Read the instructions in the banner at the top of every page HOW TO ATTACH YOUR SAMPLE WORKBOOK:

  16. #16
    Registered User
    Join Date
    05-05-2021
    Location
    United Kingdom
    MS-Off Ver
    Office 365
    Posts
    45

    Re: Recording on to another worksheet

    Hi Bernie,

    Can you open the attachment now? (I have changed the name of the second tab just for indication purposes, it does not need the 'will be hidden part' and that part is removed for the VBA code)

    Thank you,

    H
    Attached Files Attached Files
    Last edited by hboss_1; 05-11-2021 at 10:07 AM.

  17. #17
    Forum Expert
    Join Date
    02-11-2014
    Location
    New York
    MS-Off Ver
    Excel 365 (Windows)
    Posts
    5,942

    Re: Recording on to another worksheet

    Try this version - I added tables that include May, so you can answer 4 or 5 when asked for the month number.
    Attached Files Attached Files

  18. #18
    Registered User
    Join Date
    05-05-2021
    Location
    United Kingdom
    MS-Off Ver
    Office 365
    Posts
    45

    Re: Recording on to another worksheet

    Once Again, this is brilliant. It is exactly what I wanted, I'm going to start putting real data in, thanks to you of course. Once that button is pressed how would one go back to the default view of all the tables?

    Thank you,

    H

  19. #19
    Forum Expert
    Join Date
    02-11-2014
    Location
    New York
    MS-Off Ver
    Excel 365 (Windows)
    Posts
    5,942

    Re: Recording on to another worksheet

    Use this code to replace the existing code - in Module1:

    Please Login or Register  to view this content.

  20. #20
    Registered User
    Join Date
    05-05-2021
    Location
    United Kingdom
    MS-Off Ver
    Office 365
    Posts
    45

    Re: Recording on to another worksheet

    Perfect! One Final, Final, Final Thing (I promise)! If you see the 3rd tab, it will provide a summary table of all dates that each employee will have leave for. When I clear Annual Leave (using the brilliant CAL method), the summary tabs formulas change to #REF, is there any way to prevent this?

  21. #21
    Forum Expert
    Join Date
    02-11-2014
    Location
    New York
    MS-Off Ver
    Excel 365 (Windows)
    Posts
    5,942

    Re: Recording on to another worksheet

    I don't get errors, but the dates should be sorted properly for display on your summary sheet. (I also changed that formula)
    Attached Files Attached Files

  22. #22
    Registered User
    Join Date
    05-05-2021
    Location
    United Kingdom
    MS-Off Ver
    Office 365
    Posts
    45

    Re: Recording on to another worksheet

    Hi Bernie,

    Thank you so much for all your work, I think it is working exactly as I wished. If I could buy you a drink I would!

    Thank you,

    H

  23. #23
    Forum Expert
    Join Date
    02-11-2014
    Location
    New York
    MS-Off Ver
    Excel 365 (Windows)
    Posts
    5,942

    Re: Recording on to another worksheet

    The next time I'm in the UK....

  24. #24
    Registered User
    Join Date
    05-05-2021
    Location
    United Kingdom
    MS-Off Ver
    Office 365
    Posts
    45

    Re: Recording on to another worksheet

    Hey Bernie,

    The workbook is very much how I want it now. There are 2 things I thought I'd ask you if you have a chance, firstly is there any way to clear the month selection when exiting/opening the excel document, say if someone filters on March and closes the workbook. Rather than the next person open it and panic (a lot do!) is there a way where this filter/selection is cleared?

    Secondly, In my summary sheet (with the dates of annual leave summarised, with IFERROR INDEX Formulae) I need a way to count the number of days. This would ordinarly be straight forward but there are formulas in the cells, so I'm not sure how to do this. Ideally I'd want (to the left of the name), the total dates taken as leave.

    I know I'm mithering you again but seeing as though you've done so much for me already I thought I'd ask.

    Thank you,

    H

  25. #25
    Forum Expert
    Join Date
    02-11-2014
    Location
    New York
    MS-Off Ver
    Excel 365 (Windows)
    Posts
    5,942

    Re: Recording on to another worksheet

    Sure - here you go....
    Attached Files Attached Files

  26. #26
    Registered User
    Join Date
    05-05-2021
    Location
    United Kingdom
    MS-Off Ver
    Office 365
    Posts
    45

    Re: Recording on to another worksheet

    Hi Bernie,

    I have only just seen your response despite being on the forum!

    As always your solution is simply brilliant, genuinely don't know what I would have done without your help!

    I posted another thread (mainly because I don't want to keep mithering you) around combining VBA codes but I think its just better I ask you!

    If I say needed another summary sheet for Complimentary Leave (so the same as for Annual Leave but instead Complimentary Leave), how would I go about the VBA code. I tried copying the previous VBA code (replacing the AL sheet with a CL sheet) and replacing 'Annual Leave' With 'Comp L' and then tried merging the two codes together but had no luck?

    Is this scenario possible at all with this specific code?

    Thank you as always Bernie,

    H

  27. #27
    Forum Expert
    Join Date
    02-11-2014
    Location
    New York
    MS-Off Ver
    Excel 365 (Windows)
    Posts
    5,942

    Re: Recording on to another worksheet

    Use Comp Leave and CCL to trigger the code.
    Attached Files Attached Files

  28. #28
    Registered User
    Join Date
    05-05-2021
    Location
    United Kingdom
    MS-Off Ver
    Office 365
    Posts
    45

    Re: Recording on to another worksheet

    Hi Bernie,

    As always, this is is simply brilliant.

    Thank you enormously, if you are ever in the UK please do let me know!

    H

  29. #29
    Registered User
    Join Date
    05-05-2021
    Location
    United Kingdom
    MS-Off Ver
    Office 365
    Posts
    45

    Re: Recording on to another worksheet

    Hi Bernie,

    If I want to add a column between the name column(B) and the first day of the week column (C)- to show the area that person is working in, how would I alter the VBA code to still reference AL and CL? I've tried changing it but I just end up messing it up.

    Thank you,

    H

  30. #30
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,625

    Re: Recording on to another worksheet

    You might want to remove the solved tag from the thread ...
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  31. #31
    Registered User
    Join Date
    05-05-2021
    Location
    United Kingdom
    MS-Off Ver
    Office 365
    Posts
    45

    Re: Recording on to another worksheet

    Hi,

    Bernie has solved my issue but this question is related to changing the code slightly to compensate for an extra need (hence there is no need for a new thread)

  32. #32
    Forum Expert
    Join Date
    02-11-2014
    Location
    New York
    MS-Off Ver
    Excel 365 (Windows)
    Posts
    5,942

    Re: Recording on to another worksheet

    I think this is what you want....
    Attached Files Attached Files

  33. #33
    Registered User
    Join Date
    05-05-2021
    Location
    United Kingdom
    MS-Off Ver
    Office 365
    Posts
    45

    Re: Recording on to another worksheet

    Literally EXACTLY what I needed, your skills are genuinely unparalleled!

    Just a quick question, with regards to adding a new member of staff. Is there any existing way whereby if I add a new member of staff this gets added to all the below weeks as well? I noticed how all your tables had the business area in them, did you do this manually (copy-paste)? If there is a way whereby if new staff are added the change is reciprocated below, otherwise if not it is no issue I will just make the tables bigger and add spare boxes.

    Thank you Bernie,

    H

  34. #34
    Forum Expert
    Join Date
    02-11-2014
    Location
    New York
    MS-Off Ver
    Excel 365 (Windows)
    Posts
    5,942

    Re: Recording on to another worksheet

    You could set up your file to include 2X rows for X new staff members in each area. Then fill the first table of names with "Not Used" - and then link the other tables to those entries. You could then hide the Not Used rows with code, and use a special value to unhide all the rows so that you can enter a new member, which will remain visible since the value will not be "Not Used" Sound like a way to do it?

  35. #35
    Registered User
    Join Date
    05-05-2021
    Location
    United Kingdom
    MS-Off Ver
    Office 365
    Posts
    45

    Re: Recording on to another worksheet

    Hi Bernie, that sounds great, all but the code for hiding the not used rows- what would that code entail?

  36. #36
    Registered User
    Join Date
    05-05-2021
    Location
    United Kingdom
    MS-Off Ver
    Office 365
    Posts
    45

    Re: Recording on to another worksheet

    Ignore this message (deleted)
    Last edited by hboss_1; 05-21-2021 at 08:07 AM.

  37. #37
    Registered User
    Join Date
    05-05-2021
    Location
    United Kingdom
    MS-Off Ver
    Office 365
    Posts
    45

    Re: Recording on to another worksheet

    Hi Bernie,

    Ignore the previous reply, it was a conditional formatting issue, I had a load of extra rules that were slowing the whole thing!

    I'm loving how it is now, I think I should scrap adding a new member of staff but instead what are the possibilities of having name buttons along the top, allowing a member of staff to click on their name and then filter on all their shifts (rather than every single week for everyone), the reason I ask (although it sounds complicated) is that wouldn't it work similar to the month selection you created? If I am stretching the realms of possibility then please let me know!!

    Thanks,

    H

  38. #38
    Forum Expert
    Join Date
    02-11-2014
    Location
    New York
    MS-Off Ver
    Excel 365 (Windows)
    Posts
    5,942

    Re: Recording on to another worksheet

    Try this one - I created a list of names in column V - fill in your real values starting in V2 (always leave V1 intact).
    Attached Files Attached Files

  39. #39
    Registered User
    Join Date
    05-05-2021
    Location
    United Kingdom
    MS-Off Ver
    Office 365
    Posts
    45

    Re: Recording on to another worksheet

    Simply Brilliant, you are an excel GENIUS! This is going to help me so so much. Similar to the other clearing code is there a code that will remove the filter when opening/closing the workbook?

  40. #40
    Forum Expert
    Join Date
    02-11-2014
    Location
    New York
    MS-Off Ver
    Excel 365 (Windows)
    Posts
    5,942

    Re: Recording on to another worksheet

    Stop! You're making me blush!
    Attached Files Attached Files

  41. #41
    Registered User
    Join Date
    05-05-2021
    Location
    United Kingdom
    MS-Off Ver
    Office 365
    Posts
    45

    Re: Recording on to another worksheet

    WONDERFUL, I cant thank you enough, the things you've done have been so inspiring and make me want to learn much, much more, I had never used these forums before but I think your help will definitely trigger me to use this more. Thank you again and sorry for the continuous questions, you are a real gentleman!

    Thank you,

    H

  42. #42
    Forum Expert
    Join Date
    02-11-2014
    Location
    New York
    MS-Off Ver
    Excel 365 (Windows)
    Posts
    5,942

    Re: Recording on to another worksheet

    Great - Excel is a powerful tool for organizing information, and VBA extends its usefulness immensely. So keep learning, and asking questions, and you'll find many uses for your new skills.

    Good luck!
    B

  43. #43
    Registered User
    Join Date
    05-05-2021
    Location
    United Kingdom
    MS-Off Ver
    Office 365
    Posts
    45

    Re: Recording on to another worksheet

    Hi Bernie,

    Using your VBA code, I've added around 10 different scenarios (AL, unpaid leave etc) and it is simply brilliant. I was wondering if there is anyway to add a part to the VBA code whereby instead of 'If Target.Value = "xxxxxx" " we have 'If Target.Value CONTAINS xxxx'?

    This is for example if a member of staff is on a training course that day, I can put "TC" and then the name of the course, but the date of that course is then recorded. Of course currently I can only put "TC" and nothing else.

    Just exploring possibilities!

    Thank you,

    H

  44. #44
    Forum Expert
    Join Date
    02-11-2014
    Location
    New York
    MS-Off Ver
    Excel 365 (Windows)
    Posts
    5,942

    Re: Recording on to another worksheet

    The code for 'If Target.Value CONTAINS xxxx' is

    Please Login or Register  to view this content.
    or, if TC will always be the start of the string
    Please Login or Register  to view this content.
    or
    Please Login or Register  to view this content.
    Then there is this that will find TC anywhere:
    Please Login or Register  to view this content.
    And a few more that really are bad practice So take your pick - I prefer the version using Left

  45. #45
    Registered User
    Join Date
    05-05-2021
    Location
    United Kingdom
    MS-Off Ver
    Office 365
    Posts
    45

    Re: Recording on to another worksheet

    Hi Bernie,

    I missed out a little part of the VBA code, I changed it and (as always) it works a charm!

    Thank you Bernie!

    One question, my previous system would rely on me putting comments on certain cells indicating that person did a certain amount of overtime. This is of course is an awful method as it is hard to spot comments when it comes to filling in status returns. Is there anyway whereby I can put 'Overtime' into a cell followed by text (which may be times or rates) and not only am I taking the date of this overtime (as the VBA code currently does) but it also takes the text after the 'Overtime' and records it.

    I hope you understand what I'm getting at, alternatively if you think there is a better way of recording this please let me know!

    Thank you,

    Your friend,

    H
    Last edited by hboss_1; 05-26-2021 at 11:10 AM.

  46. #46
    Forum Expert
    Join Date
    02-11-2014
    Location
    New York
    MS-Off Ver
    Excel 365 (Windows)
    Posts
    5,942

    Re: Recording on to another worksheet

    If you enter, for example,

    OT 4:35

    Then this bit of code will extract the time part, and show a message box with 4:35:00 AM (but don't use the messagebox in your final code)

    This assumes that Option Base has not been set to 1 (I'm pretty sure it is not)

    Please Login or Register  to view this content.

  47. #47
    Registered User
    Join Date
    05-05-2021
    Location
    United Kingdom
    MS-Off Ver
    Office 365
    Posts
    45

    Re: Recording on to another worksheet

    Hi Bernie,

    So I put this code into a new module? Or the existing VBA code?

    So say with your example if (when it works) I put in OT and say 4:00 (meaning 4 hours overtime), this will get recorded in a separate sheet or? Sorry, just a little confused!

    Thank you,

    H

  48. #48
    Forum Expert
    Join Date
    02-11-2014
    Location
    New York
    MS-Off Ver
    Excel 365 (Windows)
    Posts
    5,942

    Re: Recording on to another worksheet

    So - Enter Overtime like so, OT Time Note, like

    OT 2:15 Doing what he does

    And it will appear in the OT database.

    To remove OT, use COT

    If there is no time associated with the OT, use

    OT 0 Note (that's a zero)
    Attached Files Attached Files

  49. #49
    Registered User
    Join Date
    05-05-2021
    Location
    United Kingdom
    MS-Off Ver
    Office 365
    Posts
    45

    Re: Recording on to another worksheet

    Hi Bernie,

    Is there anything you can't do?

    Works absolutely brilliantly!

    The only issue (which is itself a minor issue) I'm having is if I put OT and then the time in and it submits, if I click on the cell again (without changing anything) and click away it will duplicate the entry? So in essence my question is, is there anyway of preventing such duplicate values?

    Thank you,

    H

  50. #50
    Forum Expert
    Join Date
    02-11-2014
    Location
    New York
    MS-Off Ver
    Excel 365 (Windows)
    Posts
    5,942

    Re: Recording on to another worksheet

    This should fix that.
    Attached Files Attached Files

  51. #51
    Registered User
    Join Date
    05-05-2021
    Location
    United Kingdom
    MS-Off Ver
    Office 365
    Posts
    45

    Re: Recording on to another worksheet

    And indeed it does! One slight issue I've got with it, if I put OT in, with some text and hours it submits great, if I click and click away the new code does brilliantly and removes any duplicates, but if I then click and click away again a duplicate forms with a change in format of the hours cell (showing AM/PM), take a look in the attachment.

    I think that is pretty much it! One final thing (just because I have never utilised VBA to this extent), ideally I want the scenario where employees can only view the main page roster and use the month and name filters and that is it (I don't want them to see other peoples leave or overtime for example in the other tabs). In a normal scenario of course I would just hide and protect sheets, which would work- but in this case when I do protect the first page as view only (and require a password to edit or unhide the other tabs) the month and name filters/buttons do not work as a result. Only those that then know the password can edit/view the other tabs.

    That is the final thing I will ask of you Bernie, I know I've asked so much but the more you've shown me the more I've come up with possibilities in my head, some things I could never have imagined and as a result I've learnt so much.

    Thank you,

    H
    Attached Files Attached Files
    Last edited by hboss_1; 05-27-2021 at 01:36 PM.

  52. #52
    Forum Expert
    Join Date
    02-11-2014
    Location
    New York
    MS-Off Ver
    Excel 365 (Windows)
    Posts
    5,942

    Re: Recording on to another worksheet

    The best thing would be exporting sheets to separate workbooks and giving the workbooks to the individuals. Use this version, and place the second attached file "Report Template.xlsm" into the same folder.
    Attached Files Attached Files

  53. #53
    Registered User
    Join Date
    05-05-2021
    Location
    United Kingdom
    MS-Off Ver
    Office 365
    Posts
    45

    Re: Recording on to another worksheet

    Hi,

    This method is ingenious, I will test it out fully and assess the effectiveness!

    With regards to the duplicate issue, is there any solution? Can the format of the 'hours' taken from OT cells be set in the VBA code?

    The issue from above (I edited my response so you probably didn't see it!)

    One slight issue I've got with it, if I put OT in, with some text and hours it submits great, if I click and click away the new code does brilliantly and removes any duplicates, but if I then click and click away again a duplicate forms with a change in format of the hours cell (showing AM/PM), take a look in the attachment.

    Thank you Bernie,

    H

  54. #54
    Forum Expert
    Join Date
    02-11-2014
    Location
    New York
    MS-Off Ver
    Excel 365 (Windows)
    Posts
    5,942

    Re: Recording on to another worksheet

    Honestly - at this point, I would just advise you "Don't do that" Are you really going to click and click and click on one cell? Enter the OT and leave it alone. If you need to change it, cancel it first, then re-enter a new value, and then.... leave it alone. If you're not the only one entering the values, then you may have to clean up after someone else

  55. #55
    Registered User
    Join Date
    05-05-2021
    Location
    United Kingdom
    MS-Off Ver
    Office 365
    Posts
    45

    Re: Recording on to another worksheet

    Hi Bernie,

    Hope you are okay!

    I have altered the month selection code slightly so when the selected it will unlock the sheet, filter the month, then relock the sheet. The only issue I am having is with the name selection, I want the name selection to do the same thing; i.e. when a name is selected, unlock the sheet, filter, then relock the sheet. This is to prevent any edits by employees.

    Any ideas?

    Thank you,

    H

  56. #56
    Forum Expert
    Join Date
    02-11-2014
    Location
    New York
    MS-Off Ver
    Excel 365 (Windows)
    Posts
    5,942

    Re: Recording on to another worksheet

    Unlock cell H3 so that it can be modified when the sheet is protected, and change the code in the Sheet1 codemodule to

    Please Login or Register  to view this content.

  57. #57
    Registered User
    Join Date
    05-05-2021
    Location
    United Kingdom
    MS-Off Ver
    Office 365
    Posts
    45

    Re: Recording on to another worksheet

    Hi Bernie,

    I'd just like you to know that the roster system is up and running, with no real issues (so far!). I added a few different things to them ( you were my inspiration) and so I would just like to say Thank you for all your help. Your brilliance has taught me a lot and I aspire to one day reach your level with excel!

    Thank you,

    Your friend in the UK,

    H

  58. #58
    Forum Expert
    Join Date
    02-11-2014
    Location
    New York
    MS-Off Ver
    Excel 365 (Windows)
    Posts
    5,942

    Re: Recording on to another worksheet

    H,

    That's great - nice to hear that everything is working. If you ever have any other issues, I or some of the talented folks here will be glad to help out.

    Be well - watch out for Delta!

    Bernie

+ 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. [SOLVED] Recording macro to copy the data from one worksheet to another worksheet
    By pyol17 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 08-06-2012, 12:05 AM
  2. Recording data from one worksheet (a form) into another (table)
    By this_barb in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-18-2012, 05:00 PM
  3. Replies: 3
    Last Post: 06-15-2009, 03:44 PM
  4. Replies: 1
    Last Post: 06-14-2009, 05:35 PM
  5. Recording macro using cell references in worksheet
    By sarabella in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 01-18-2007, 05:16 PM
  6. [SOLVED] Recording a high price on a worksheet
    By Lou New At Excel in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 04-16-2006, 11:35 AM
  7. [SOLVED] Recording Changes Made to Worksheet
    By Paige in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 06-27-2005, 04:05 PM
  8. Recording Macro to save worksheet and print
    By dmacman in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-20-2005, 11:36 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