excel - VBA code that concatenates a letter and variable to create a cell reference -
i have piece of code determines lowest row data in it. want write cell underneath row don't overwrite old data, i'm having trouble referencing cell. clarify, have code determines, example, 51st row lowest row contain data. need correct second piece of code writes cell below row:
note: integer "highest" row number lowest on table contains data
sh1.range(concatenate(",'b', (highest+1),")).value
i tried
sh1.range("b" & (highest+1)
finally, checked several forums , hinted should use indirect create cell reference, haven't had luck that. correct way be?
you're close, remove second ( line
sh1.range("b" & (highest+1)
so reads this:
sh1.range("b" & highest + 1)
Comments
Post a Comment