Академический Документы
Профессиональный Документы
Культура Документы
________________________________
'Kopiranje iz jednog fajla u drugi - oba moraju da budu otvorena - dva reda
'Kopiranje na klipboard
Workbooks("New Data.xls").Worksheets("Export").Range("A2:D9").Copy
'PasteSpecial to paste values, formulas, formats, etc.
Workbooks("Reports.xls").Worksheets("Data").Range("A2").PasteSpecial
Paste:=xlPasteValues
________________________________
'Otvaranje i zatvaranje fajla
________________________________
________________________________
______________________________________________________________________________
This would be true for finding the end also.......
range("a2").end(xldown).select
the line above will put you at the end of the data, the last one with a value
if you want the next one, which should be blank
range("a2").end(xldown).select
activecell.offset(1,0).select
ili
You can use a similar method, which starts from the bottom and first the first cell
with data:
Range("A65536").End(xlUp).Select
To select the first blank cell after your last row of data, use:
Range("A65536").End(xlUp).Offset(1,0).Select