1
Good morning,
I have an Excel file with two spreadsheet, in 'Plan1' all data are deleted, and a MACRO I made, imports a TXT file and populates the 'Plan1', inserting data and calculations. In 'Plan2' the data is fixed and takes as reference the data of 'Plan1', however when the data of 'Plan1' are deleted, all references are lost in 'Plan2', showing the error '#REF!'.
Does anyone know any formula that does not use this reference that takes into account the deleted cells? Something where '=Plan1! A5' will always be '=Plan1! A5' even if '=Plan1! A5' has been deleted.
The $(dollar sign) is not good for this.
A solution would be to rewrite 'Plan2' with a macro so q a 'Plan1' is finished :/ But I didn’t want to have to do this...
– Carlos Fagiani Jr
Any reference to Plan1 will be replaced by #REF! by Excel as soon as the worksheet is removed. I don’t see how to make Excel keep the formula referencing it after it has been deleted. Your solution seems to me to be adequate and any other should look like this.
– Reginaldo Rigo