In my spreadsheet i have an area for allowing users to enter survey results, at the end of which is a button they can push (with an attached macro) that will display the results of the survey in a pie graph.
The information used by the macro to show the series information is stored in columns at the end of the end of the data entry area
All works well until extra columns are entered in the data entry area, pushing the category label information further across the spreadsheet. As the macro uses this data to display graph category label content, the macro needs to recognise that the data range for this has moved and to move with it (i.e F3:F7 becomes G3:G7). The macro is not picking this change up, and when the button is pressed to generate the graph, the category label information is missed.
How do i make the macro realise that this important information has moved and to ensure it is captured.
Image added, to hopefully make sense of my description
The information used by the macro to show the series information is stored in columns at the end of the end of the data entry area
All works well until extra columns are entered in the data entry area, pushing the category label information further across the spreadsheet. As the macro uses this data to display graph category label content, the macro needs to recognise that the data range for this has moved and to move with it (i.e F3:F7 becomes G3:G7). The macro is not picking this change up, and when the button is pressed to generate the graph, the category label information is missed.
How do i make the macro realise that this important information has moved and to ensure it is captured.
Image added, to hopefully make sense of my description