Vulcanzier
New Member
- Joined
- Jul 8, 2016
- Messages
- 1
[FONT="]Hi all,[/FONT]
[FONT="]I am building a taskboard on excel. I have built it so that the user can click/ tap to cycle through colors red, green, yellow in order to signify completeness of the task. this is on the master Sheet. I'm doing this by running the following macro: [/FONT]
[FONT="] [/FONT][FONT="]Private Sub Worksheet_SelectionChange(ByVal Target As Range)
'Then change the background to the specified color
'Target.Value = "Not Complete"
If Target.Value = "Not Complete" Then
'But if the target cell is already the specified color
Target.Value = "In Progress"
'Then change the background to the specified color
ElseIf Target.Value = "In Progress" Then
'But if the target cell is already the specified color
Target.Value = "Complete"
'Then change the background to the specified color
ElseIf Target.Value = "Complete" Then
Target.Value = "Not Complete"
End If
End Sub
Private Sub Worksheet_BeforeDoubleClick(ByVal Target As Range, Cancel As Boolean)
Cancel = True
Worksheet_SelectionChange Target
End Sub
[/FONT]
[FONT="]I have created separate sheets that correspond directly withe the Master sheet, with the same tasks, just blow up so they can be read better. My ultimate goal is to be able to cycle through the colors on the Master sheet and have it link to the ones on the separate task sheets, and visa versa. being able to cycle on the blow up sheets and have it feed to the master. I know how to make it go one way ie, master to separate sheets, (using a copy paste special link) but i don't know how to make the separate sheets feed back to the master. However the selections do not line up perfectly, ie: what is in A7 on the master could be on B5 on the other sheet. [/FONT]
[FONT="]Thank you in advanced for your insight![/FONT]
[FONT="]So i was able to mirror the sheets exactly, using this code: [/FONT]
<code style="border: 0px; font-weight: inherit; font-style: inherit; font-family: Consolas, Menlo, Monaco, "Lucida Console", "Liberation Mono", "DejaVu Sans Mono", "Bitstream Vera Sans Mono", "Courier New", monospace, sans-serif; margin: 0px; outline: 0px; padding: 0px; white-space: inherit;">Private Sub Worksheet_Change(ByVal Target As Range)
If ThisWorkbook.Sheets("Sheet1").Range(Target.Address).Value <> Target.Value Then
ThisWorkbook.Sheets("Sheet1").Range(Target.Address).Value = Target.Value
End If
End Sub</code>[FONT="]The sheets can go back and forth. the only problem is the Separate sheets are not mirroring the Master sheet in layout. example the data in cells A3:A23 on the master our split into 4 different ranges on the separate sheet A2:11, D3:D8, G2:G3, J2:J3[/FONT]
[FONT="]I am building a taskboard on excel. I have built it so that the user can click/ tap to cycle through colors red, green, yellow in order to signify completeness of the task. this is on the master Sheet. I'm doing this by running the following macro: [/FONT]
[FONT="] [/FONT][FONT="]Private Sub Worksheet_SelectionChange(ByVal Target As Range)
'Then change the background to the specified color
'Target.Value = "Not Complete"
If Target.Value = "Not Complete" Then
'But if the target cell is already the specified color
Target.Value = "In Progress"
'Then change the background to the specified color
ElseIf Target.Value = "In Progress" Then
'But if the target cell is already the specified color
Target.Value = "Complete"
'Then change the background to the specified color
ElseIf Target.Value = "Complete" Then
Target.Value = "Not Complete"
End If
End Sub
Private Sub Worksheet_BeforeDoubleClick(ByVal Target As Range, Cancel As Boolean)
Cancel = True
Worksheet_SelectionChange Target
End Sub
[/FONT]
[FONT="]I have created separate sheets that correspond directly withe the Master sheet, with the same tasks, just blow up so they can be read better. My ultimate goal is to be able to cycle through the colors on the Master sheet and have it link to the ones on the separate task sheets, and visa versa. being able to cycle on the blow up sheets and have it feed to the master. I know how to make it go one way ie, master to separate sheets, (using a copy paste special link) but i don't know how to make the separate sheets feed back to the master. However the selections do not line up perfectly, ie: what is in A7 on the master could be on B5 on the other sheet. [/FONT]
[FONT="]Thank you in advanced for your insight![/FONT]
[FONT="]So i was able to mirror the sheets exactly, using this code: [/FONT]
<code style="border: 0px; font-weight: inherit; font-style: inherit; font-family: Consolas, Menlo, Monaco, "Lucida Console", "Liberation Mono", "DejaVu Sans Mono", "Bitstream Vera Sans Mono", "Courier New", monospace, sans-serif; margin: 0px; outline: 0px; padding: 0px; white-space: inherit;">Private Sub Worksheet_Change(ByVal Target As Range)
If ThisWorkbook.Sheets("Sheet1").Range(Target.Address).Value <> Target.Value Then
ThisWorkbook.Sheets("Sheet1").Range(Target.Address).Value = Target.Value
End If
End Sub</code>[FONT="]The sheets can go back and forth. the only problem is the Separate sheets are not mirroring the Master sheet in layout. example the data in cells A3:A23 on the master our split into 4 different ranges on the separate sheet A2:11, D3:D8, G2:G3, J2:J3[/FONT]