I have some code that loop through ranges and concatenates strings together based on dates. When I print it out it works correctly but when I try to assign the strings to cells ith doesn't work correctly.
This works:
and gives me the correct output
Prime1
Prime1 Prime2
Prime2 prime3
This does not:
and gives me something like this (always repeating the previous cell value)
Prime1
Prime 1 Prime1 Prime2
Prime 1 Prime1 Prime2 Prime2 prime3
Any suggestions on how to fix this?
Thanks
This works:
Code:
debug.print strNewName
and gives me the correct output
Prime1
Prime1 Prime2
Prime2 prime3
This does not:
Code:
owData.Range("B" & rngTypeCell.Row).Value = strNewName
and gives me something like this (always repeating the previous cell value)
Prime1
Prime 1 Prime1 Prime2
Prime 1 Prime1 Prime2 Prime2 prime3
Any suggestions on how to fix this?
Thanks