Hi All
I have two cells C21 and AS10 in two different excel sheets of a workbook. In excel I have defined name of cell C21 as ExpenseInitial and that of AS10 as ExpenseInitialBase. Now I want to assign value of AS20 to C21 through formula. In excel I'll simply type the formula in cell C21 "=[ExpenseInitialBase]"
I want this thing to be done through VBA
For this purpose I am using following code
Range("ExpenseInitial').Formula = "=[ExpenseInitialBase]"
But the above code is giving error.
I also tried the following code
[ExpenseInitial].Formula = "=[ExpenseInitialBase]"
But this is also not working.
Please Guide
Regards
Brijesh
I have two cells C21 and AS10 in two different excel sheets of a workbook. In excel I have defined name of cell C21 as ExpenseInitial and that of AS10 as ExpenseInitialBase. Now I want to assign value of AS20 to C21 through formula. In excel I'll simply type the formula in cell C21 "=[ExpenseInitialBase]"
I want this thing to be done through VBA
For this purpose I am using following code
Range("ExpenseInitial').Formula = "=[ExpenseInitialBase]"
But the above code is giving error.
I also tried the following code
[ExpenseInitial].Formula = "=[ExpenseInitialBase]"
But this is also not working.
Please Guide
Regards
Brijesh