One of the cells(Row:5,Column:6) in my Excel Sheet1 has a reference value in Sheet2. ='Sheet2'!$C14
My VBScript code is as follows.
string1 returns a value of 0 instead of the final value based on the reference formula. I am attempting to assign the final value retrieved from Sheet2!C14 to string1.
I would appreciate help in this task.
My VBScript code is as follows.
Code:
Set ws1 = wb1.Worksheets("Sheet1")
string1 = ws1.Cells(5,6).Value
WScript.Echo string1
string1 returns a value of 0 instead of the final value based on the reference formula. I am attempting to assign the final value retrieved from Sheet2!C14 to string1.
I would appreciate help in this task.