I'm brand new to VBA and Macros, having had the luxury of relying on statistical programming languages like R and Python up until now. Due to some restrictions at my workplace that won't allow me to use R Shiny or Python Flask for the task at hand, I am looking to make what is effectively a data review tool in excel. I'll add that access to MS Forms and Power Apps is coming down the pipeline but not in time. I'm pursuing other options using PDF and such for my immediate need but am hopeful this can work in excel.
For the sake of an easy-to-relay problem set (posted below as mini sheets), let's say I have a hidden 'sheet1' as my back-end data with an ID (col A, numeric), Value1 (col B, string), and Comments (col C, string); and 'sheet2' as my front-end for the reviewers I'm working with, which contains a drop-down to select an ID from sheet1 to display the associated Value1 and let a reviewer type in their comment. Their comment would then fill the corresponding row of sheet1!Comments. Now for the tricky part: my reviewers want the ability to save and then come back to edit their comments. This would require some method to "read in" a value from sheet1!Comments when the dropdown is selected in sheet2, allow the reviewer to edit that comment in sheet2, and then overwrite the sheet1!Comments cell to update their comment.
Is this even possible? If so, I'm open to whatever makes this a smooth experience for the reviewers -- Macros, VBA buttons to 'Save' into sheet1 or even update a formula that contains their comment as text in part of the formula, even something like keeping the comments in sheet2 in hidden rows that hide/unhide based on the dropdown selection. I just have to get all of the reviewer files back and collate their comments, so I don't care which sheet their comments are saved in so long as I can identify which ID and Value# it is associated with as there are multiple elements per ID for them to review in reality.
Regards,
2 Math Degrees & 1 Excel Headache
SHEET1 (Back-end data to be hidden from reviewers):
SHEET2 (Front-End for Reviewer Interaction/Editing):
For the sake of an easy-to-relay problem set (posted below as mini sheets), let's say I have a hidden 'sheet1' as my back-end data with an ID (col A, numeric), Value1 (col B, string), and Comments (col C, string); and 'sheet2' as my front-end for the reviewers I'm working with, which contains a drop-down to select an ID from sheet1 to display the associated Value1 and let a reviewer type in their comment. Their comment would then fill the corresponding row of sheet1!Comments. Now for the tricky part: my reviewers want the ability to save and then come back to edit their comments. This would require some method to "read in" a value from sheet1!Comments when the dropdown is selected in sheet2, allow the reviewer to edit that comment in sheet2, and then overwrite the sheet1!Comments cell to update their comment.
Is this even possible? If so, I'm open to whatever makes this a smooth experience for the reviewers -- Macros, VBA buttons to 'Save' into sheet1 or even update a formula that contains their comment as text in part of the formula, even something like keeping the comments in sheet2 in hidden rows that hide/unhide based on the dropdown selection. I just have to get all of the reviewer files back and collate their comments, so I don't care which sheet their comments are saved in so long as I can identify which ID and Value# it is associated with as there are multiple elements per ID for them to review in reality.
Regards,
2 Math Degrees & 1 Excel Headache
SHEET1 (Back-end data to be hidden from reviewers):
data_editing_example.xlsx | |||||
---|---|---|---|---|---|
A | B | C | |||
1 | ID | Value1 | Comments | ||
2 | 1 | aaa | Reviewer write and edit comments here | ||
3 | 2 | bbb | FALSE | ||
4 | 3 | ccc | FALSE | ||
5 | 4 | ddd | FALSE | ||
6 | 5 | eee | FALSE | ||
sheet1 |
Cell Formulas | ||
---|---|---|
Range | Formula | |
C2:C4 | C2 | =IF(sheet2!B3=sheet1!A2,sheet2!B7) |
C5:C6 | C5 | =IF(sheet2!B7=sheet1!A5,sheet2!B10) |
SHEET2 (Front-End for Reviewer Interaction/Editing):
data_editing_example.xlsx | ||||||
---|---|---|---|---|---|---|
A | B | C | D | |||
1 | REVIEWER FORM | |||||
2 | ||||||
3 | Select ID: | 1 | ||||
4 | ||||||
5 | Value to Review: | aaa | ||||
6 | ||||||
7 | Comments from Reviewer: | Reviewer write and edit comments here | ||||
8 | ||||||
sheet2 |
Cell Formulas | ||
---|---|---|
Range | Formula | |
B5 | B5 | =INDIRECT("sheet1!B"&MATCH($B$3,sheet1!A2:sheet1!A6)+1) |
Cells with Data Validation | ||
---|---|---|
Cell | Allow | Criteria |
B3 | List | =sheet1!$A$2:$A$6 |