Darkshine31
New Member
- Joined
- Oct 10, 2024
- Messages
- 10
- Office Version
- 365
- Platform
- Windows
Hi good people of the Excel world.
I have a macro that I've built which is designed to "Reset" a sheet back to default settings once a client has had access to it and changed certain cell ranges as required.
I have a range of cells named "data_entry_low_grid_connection_prospects_speel" (which happens to be merged cells C36 - C39 in case you need to know). It has a working formula in it that, if overwritten by the client needs to be reset when the reset button is clicked in the sheet.
The formula is:
=IF(ISNUMBER(SEARCH("Please go", data_entry_low_grid_potential_question)), data_entry_low_grid_potential_question, "Please provide an explanation for low prospects of connection - see example - do not start with a capital letter or end with a full stop")
The macro entry related to that section is:
Range("data_entry_low_grid_connection_prospects_speel").Select
ActiveCell.FormulaR1C1 = "=IF(ISNUMBER(SEARCH("Please go", data_entry_low_grid_potential_question)), data_entry_low_grid_potential_question, "Please provide an explanation for low prospects of connection - see example - do not start with a capital letter or end with a full stop")"
I don't understand why the line is red and doesn't work in VBA when it does work fine in the sheet without the use of VBA.
Any assistance would be much appreciated.
Dean
I have a macro that I've built which is designed to "Reset" a sheet back to default settings once a client has had access to it and changed certain cell ranges as required.
I have a range of cells named "data_entry_low_grid_connection_prospects_speel" (which happens to be merged cells C36 - C39 in case you need to know). It has a working formula in it that, if overwritten by the client needs to be reset when the reset button is clicked in the sheet.
The formula is:
=IF(ISNUMBER(SEARCH("Please go", data_entry_low_grid_potential_question)), data_entry_low_grid_potential_question, "Please provide an explanation for low prospects of connection - see example - do not start with a capital letter or end with a full stop")
The macro entry related to that section is:
Range("data_entry_low_grid_connection_prospects_speel").Select
ActiveCell.FormulaR1C1 = "=IF(ISNUMBER(SEARCH("Please go", data_entry_low_grid_potential_question)), data_entry_low_grid_potential_question, "Please provide an explanation for low prospects of connection - see example - do not start with a capital letter or end with a full stop")"
I don't understand why the line is red and doesn't work in VBA when it does work fine in the sheet without the use of VBA.
Any assistance would be much appreciated.
Dean