P
pierreeng
Hi guys, i encounter some problems.
1. Say if i wanna clear the previous record, is ther any better
command than
Worksheets(m).Range("A1:N3000").ClearContents
i assume the largest limit as N3000, but in real case, it is alway
less than it. Hence, any better command that i can directly clear th
sheet content.
2. How can i sense the last row? Say i got 1000+ rows in several sheet
and there might be one to two spacings within the rows with data. I
Programming C, it shld be i = 1: : n and let it loop until condition
reach. How abt in VB? I wanna let it scan from the first row to th
last row.
3. How to copy a row value to anothe row except the first 2 columns?
dun want to copy cells by cells. Can it be done by smthing lik
sheets(2).Rows(n) .value = Sheets(1).Rows(m).value?
Thks. Sorry to ask n trouble so much, but i m very new in VB and i
fact, i have totally no background on it, i juz learnt throug
information on internet
1. Say if i wanna clear the previous record, is ther any better
command than
Worksheets(m).Range("A1:N3000").ClearContents
i assume the largest limit as N3000, but in real case, it is alway
less than it. Hence, any better command that i can directly clear th
sheet content.
2. How can i sense the last row? Say i got 1000+ rows in several sheet
and there might be one to two spacings within the rows with data. I
Programming C, it shld be i = 1: : n and let it loop until condition
reach. How abt in VB? I wanna let it scan from the first row to th
last row.
3. How to copy a row value to anothe row except the first 2 columns?
dun want to copy cells by cells. Can it be done by smthing lik
sheets(2).Rows(n) .value = Sheets(1).Rows(m).value?
Thks. Sorry to ask n trouble so much, but i m very new in VB and i
fact, i have totally no background on it, i juz learnt throug
information on internet