I am new to this forum and VBA in Excel. I have a routine that I've managed to cobble together that performs erases any values in adjacent columns when the value in the current column is changed. I also need to provide a default value in a cell 3 columns over. I defined a name in the Name Manager (Task_Dept_Default) and just want to set this value into the cell. This is in a table and I didn't want to use a formula to set the default since the user can overwrite it and hence erase the formula causing problem in the table.
The line is written into the routine is:
Target.Offset(0, 3).Value = ThisWorkbook.Names("Task_Dept_Default").Value
(Target is passed into to the routine and is the current cell)
However, this statement puts the formula for Task_Dept_Default into the cell and not the resultant value. I'm sure there is a simple solution to this, I'm just having trouble finding it.
Many thanks
Carrie
The line is written into the routine is:
Target.Offset(0, 3).Value = ThisWorkbook.Names("Task_Dept_Default").Value
(Target is passed into to the routine and is the current cell)
However, this statement puts the formula for Task_Dept_Default into the cell and not the resultant value. I'm sure there is a simple solution to this, I'm just having trouble finding it.
Many thanks
Carrie