excel - Concatenate formula with rowcount -


i trying enter concatenate formula in cell vba. result writes keep returning false... need use rowcount, since table grows longer , need row.

this latest code tried, again no avail:

.offset(rowcount, 0) = formula = "=concatenate(p" & rowcount & "j" & rowcount & "dg" & rowcount 

any suggestions appreciated.

you're not creating string , need change = formula = .formula =. also, i'm assuming rowcount defined somewhere?

change:

.offset(rowcount, 0) = formula = "=concatenate(p" & rowcount & "j" & rowcount & "dg" & rowcount 

to:

.offset(rowcount, 0).formula = "=concatenate(p" & rowcount & ",j" & rowcount & ",dg" & rowcount & ")" 

Comments

Popular posts from this blog

mysql - FireDac error 314 - but DLLs are in program directory -

git - How to list all releases of public repository with GitHub API V3 -

c++ - Getting C2512 "no default constructor" for `ClassA` error on the first parentheses of constructor for `ClassB`? -