Hello!
I have a macro that places a formula into a cell. This formula is pulling a value (date and time) from another Excel document. The macro works well, but the format of the cell shows a zero if the reference cell is blank. I am able to change to custom and enter "0:-0;;@" and the zero no longer displays.
Issue: Now my date is displayed as a 5 digit number. How can I adjust the formula in the cell to change the format?
I could create an IF statement on the tab code, but I am unsure what to check for. The cell has the formula.
Any help or possibly just a hint would be great! Thanks!
I have a macro that places a formula into a cell. This formula is pulling a value (date and time) from another Excel document. The macro works well, but the format of the cell shows a zero if the reference cell is blank. I am able to change to custom and enter "0:-0;;@" and the zero no longer displays.
Issue: Now my date is displayed as a 5 digit number. How can I adjust the formula in the cell to change the format?
I could create an IF statement on the tab code, but I am unsure what to check for. The cell has the formula.
Any help or possibly just a hint would be great! Thanks!