EDUCATED MONKEY
Board Regular
- Joined
- Jul 17, 2011
- Messages
- 218
win xp professional office 2007 ie8
I have dim Mystring, Newstring as strings
the problem i have is that the items to be copied are 11 chars and i only need the first 10 so i inserted Newstring = Left(Mystring, 10)
as indicated, if you can fix this problem and tell what i am doing wrong
I have dim Mystring, Newstring as strings
the problem i have is that the items to be copied are 11 chars and i only need the first 10 so i inserted Newstring = Left(Mystring, 10)
as indicated, if you can fix this problem and tell what i am doing wrong
Code:
Nextrow = wsDest.Range("A" & Rows.Count).End(xlUp).Row 'Next empty row on wsDest
Mystring = wsSource.Cells(1, "A").Resize(q).Value
> Newstring = Left(Mystring, 10)
wsDest.Cells(Nextrow, "A").Resize(q).Value = Newstring
wsDest.Cells(Nextrow, "B").Resize(q).Value = wsSource.Cells(1, "B").Resize(q).Value
Last edited: