Quantcast
Channel: Excel Help Forum - Excel Programming / VBA / Macros
Viewing all articles
Browse latest Browse all 50094

Can not write Long variables to worksheet = what am I doing wrong???

$
0
0
I've been working on a project under high pressure and I am almost there. The final thing I need to do is to write some long variables into a worksheet. And wouldn't you know it. They. will. not. write. :(

I have tried everything I can think of. So I am posting the problem here hoping it will be solved?

Here is the extract of code that will not write:
[CODE]'THE LINES BELOW WILL NOT WRITE INTO WORKSHEET.
'CONFIRM WORKSHEET IS UNPROTECTED
'CONFIRM DATA APPEARS OK IN LOCALS WINDOW
'SO WHY WONT IT WRITE TO SHEET?!?
'tried .range, .Cell, .value, nothing works :(
.range("AA:" & rCell.Row) = intAmtGTV
.Cell(rCell.Row, 28) = intAmtCntrbs
.Cell(rCell.Row, 29) = intAmtReductions
.Cell(rCell.Row, 30).value = intAmtNTV
.Cell(rCell.Row, 31) = intAmtNTVt2
intAmtGTV = 0
intAmtCntrbs = 0
intAmtReductions = 0
intAmtNTV = 0
intAmtNTVt2 = 0[:\CODE]

Viewing all articles
Browse latest Browse all 50094

Trending Articles