I have a few different variables that are set with a string to be placed into the worksheet . I am trying to get the values that are placed in those cells when the string is assigned to them. The numbers will move everyday so I can't select that particular range to add. This is the code I have, but it's bringing back the error Compile error: Invalid qualifier where "I" and "k" are. I've tried just a + b + c +... as well as adding .Value & .Value2
you seem to be assigning formulas and trying to collect the answers before they have been allocated to the cells. Try moving and evaluating i and k until after the above code. Cant check without workbook
As for example your variable a is not an object - String or Variant - so it can't have any property like Value !
Easy to check in Locals windows Don't forget the brackets for Evaluate, to see in VBA inner help !
if i do a typename(a) before your "i=" line, it says that it is a string. thus you will not be able to say a.value2 as "a" is not a range that you can get the value2 property.
No one is going to recreate your workbook structure to test. You seem to want to allocate formulas to offsets from a cell but offset from what??. Post a workbook without any sensitive data
Bookmarks