Hello Gang,
I'm not even sure that this is possible but here goes.
I have a macro that, if a date that is late to schedule is entered, puts a nice big black arrow onto that line and formats some boxes to the right (where the arrow is pointing) to show that more data is required. All well and good.
I have been asked to now alter this so that when a late date is changed and so is now forecast to be on time, the boxes to the right disappear (pretty easy as it's just formatting) and the arrow disappears...
Now I'm in trouble. When I record macros to delete or hide the autoshape, it always refers to it by number...
is there any way to refer to it by location? The macro is a Private Sub Worksheet_Change(ByVal Target As Range) type and I define the row number. Can I identify the shape that's located in this row to delete or hide? When I create the autoshape, can I name it referring to the row, maybe?
Many thanks in advance - I hope that you can help, even if if it's just to confirm my fear that it won't work.
I'm not even sure that this is possible but here goes.
I have a macro that, if a date that is late to schedule is entered, puts a nice big black arrow onto that line and formats some boxes to the right (where the arrow is pointing) to show that more data is required. All well and good.
I have been asked to now alter this so that when a late date is changed and so is now forecast to be on time, the boxes to the right disappear (pretty easy as it's just formatting) and the arrow disappears...
Now I'm in trouble. When I record macros to delete or hide the autoshape, it always refers to it by number...
Code:
ActiveSheet.Shapes("AutoShape 16").Select
Selection.Delete
is there any way to refer to it by location? The macro is a Private Sub Worksheet_Change(ByVal Target As Range) type and I define the row number. Can I identify the shape that's located in this row to delete or hide? When I create the autoshape, can I name it referring to the row, maybe?
Many thanks in advance - I hope that you can help, even if if it's just to confirm my fear that it won't work.