Use macro to dynamically insert static formula reference to an Excel sheet
I am trying to create a maintenance log for various pieces of equipment, where there is a sheet with a detailed log for each piece, and an overview sheet with some basic info. I have a macro set up to create a new sheet and enter the necessary data from a userform.
VBA Use Macro to dynamically insert static formula reference to excel sheet
I am trying to create a maintenance log for various pieces of equipment, where there is a sheet with a detailed log for each piece, and an overview sheet with some basic info. I have a macro set up to create a new sheet and enter the necessary data from a userform. I am also trying to get this macro to insert a new row on the overview sheet with references to this new equipment sheet on the overview with a formula like =’sheetname’!cell. The problem is the formula is being placed in the cell using a variable, so every time I add a new sheet, every instance of the formula updates to reference the newest sheet. How can I input my sheet name variable as just text, or otherwise break the link between the formula and variable?
VBA Use Macro to dynamically insert static formula reference to excel sheet
I am trying to create a maintenance log for various pieces of equipment, where there is a sheet with a detailed log for each piece, and an overview sheet with some basic info. I have a macro set up to create a new sheet and enter the necessary data from a userform. I am also trying to get this macro to insert a new row on the overview sheet with references to this new equipment sheet on the overview with a formula like =’sheetname’!cell. The problem is the formula is being placed in the cell using a variable, so every time I add a new sheet, every instance of the formula updates to reference the newest sheet. How can I input my sheet name variable as just text, or otherwise break the link between the formula and variable?
VBA Use Macro to dynamically insert static formula reference to excel sheet
I am trying to create a maintenance log for various pieces of equipment, where there is a sheet with a detailed log for each piece, and an overview sheet with some basic info. I have a macro set up to create a new sheet and enter the necessary data from a userform. I am also trying to get this macro to insert a new row on the overview sheet with references to this new equipment sheet on the overview with a formula like =’sheetname’!cell. The problem is the formula is being placed in the cell using a variable, so every time I add a new sheet, every instance of the formula updates to reference the newest sheet. How can I input my sheet name variable as just text, or otherwise break the link between the formula and variable?