Navigacija
Lista poslednjih: 16, 32, 64, 128 poruka.

podaci iz datoteke (.*) u excelu

[es] :: Office :: Excel :: podaci iz datoteke (.*) u excelu

[ Pregleda: 1115 | Odgovora: 2 ] > FB > Twit

Postavi temu Odgovori

Autor

Pretraga teme: Traži
Markiranje Štampanje RSS

Sudarica

Član broj: 119175
Poruke: 209
*.adsl.net.t-com.hr.



Profil

icon podaci iz datoteke (.*) u excelu16.07.2011. u 07:51 - pre 157 meseci
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
Prikačeni fajlovi
 
Odgovor na temu

Sudarica

Član broj: 119175
Poruke: 209
*.adsl.net.t-com.hr.



Profil

icon Re: podaci iz datoteke (.*) u excelu23.07.2011. u 15:14 - pre 157 meseci
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
 
Odgovor na temu

Sudarica

Član broj: 119175
Poruke: 209
*.adsl.net.t-com.hr.



Profil

icon Re: podaci iz datoteke (.*) u excelu24.07.2011. u 14:29 - pre 157 meseci
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
 
Odgovor na temu

[es] :: Office :: Excel :: podaci iz datoteke (.*) u excelu

[ Pregleda: 1115 | Odgovora: 2 ] > FB > Twit

Postavi temu Odgovori

Navigacija
Lista poslednjih: 16, 32, 64, 128 poruka.