Hello
I have a worksheet with a row listing elements. Example (C, Ca, Co, Cu, Mn). Then a column listing sample labels. Example (A-1, A-2, B-1, B-2)
Looks like this
How to use vba to place a C value for sample A-1?
Sheet name is "Summary"
I would like something like
At this point in the macro the current element being processed is referred to as "elsym"
The code works to locate the column
Of course offset wont work
I need to use the sample name to determine the row and the element symbol to determine the column.
Thanks for any help
Tom
I have a worksheet with a row listing elements. Example (C, Ca, Co, Cu, Mn). Then a column listing sample labels. Example (A-1, A-2, B-1, B-2)
Looks like this
How to use vba to place a C value for sample A-1?
Sheet name is "Summary"
I would like something like
VBA Code:
Sheets("Summary").Rows(3).Find(elsym).Offset(1).Value = WorksheetFunction.Average(posavgs)
The code works to locate the column
Of course offset wont work
I need to use the sample name to determine the row and the element symbol to determine the column.
Thanks for any help
Tom