[ Sudarica @ 16.07.2011. 07:51 ] @
| Molim pomoć
imam više datoteka iz kojih moram pokupiti podatke i spojiti sve u jednu radnu knjigu.
Napr,.
1:1923-31600-10613393001:BLAョEK LRILRANA:23.06.2011: 80.00:1:
iz redova moram uzeti podatak BLAョEK LRILRANA i staviti ga u kolonu A, i 80.00 (mora biti zarez) u kolonu B. I slova moraju biti u redu napr. ョ je Ž (1250:Central European (Windows))
Sve datoteke se nalaze G:\TEST
Hvala
Pozdrav |
[ Sudarica @ 23.07.2011. 15:14 ] @
Napravila sam i ovako to izgleda
Sub DatotekeOstale()
Dim nxt_row As Long
'Change Path
Const strPath As String = "G:\TEST "
Dim strExtension As String
'Stop Screen Flickering
Application.ScreenUpdating = False
ChDir strPath
'Change extension
strExtension = Dir(strPath & "*.*")
Do While strExtension <> ""
'Adds File Name as title on next row
Range("A50000").End(xlUp).Offset(1, 0).Value = strExtension
'Sets Row Number for Data to Begin
nxt_row = Range("A50000").End(xlUp).Offset(1, 0).Row
With ActiveSheet.QueryTables.Add(Connection:= _
"TEXT;" & strPath & strExtension, Destination:=Range("$A$" & nxt_row))
.Name = "a"
.FieldNames = True
.RowNumbers = False
.FillAdjacentFormulas = False
.PreserveFormatting = True
.RefreshOnFileOpen = False
.RefreshStyle = xlInsertDeleteCells
.SavePassword = False
.SaveData = True
.AdjustColumnWidth = True
.RefreshPeriod = 0
.TextFilePromptOnRefresh = False
.TextFilePlatform = 1250
.TextFileStartRow = 1
.TextFileParseType = xlDelimited
.TextFileTextQualifier = xlTextQualifierDoubleQuote
.TextFileConsecutiveDelimiter = False
.TextFileTabDelimiter = False
.TextFileSemicolonDelimiter = False
.TextFileCommaDelimiter = False
.TextFileSpaceDelimiter = False
.TextFileOtherDelimiter = ":"
.TextFileColumnDataTypes = Array(1, 1, 1)
.TextFileTrailingMinusNumbers = True
.Refresh BackgroundQuery:=False
End With
strExtension = Dir
Loop
Application.ScreenUpdating = True
End Sub
problem mi je jedino što mi ne prepoznaje slovo Š i Ž makar sam mu odradila (1250:Central European (Windows))
ako neko može da mi pomogne i ispravi ga
[ Sudarica @ 24.07.2011. 14:29 ] @
riješila sam to ovako, znam da je to pješačenje ali bolje nisam znala
ActiveSheet.Cells.Replace What:="©", Replacement:="Š"
ActiveSheet.Cells.Replace What:="®", Replacement:="Ž"
i sada mi radi dobro
Pozdrav
Copyright (C) 2001-2025 by www.elitesecurity.org. All rights reserved.