No. PNo Ret.Time Type Name Area Amount Rel.Ar
min mV*min g %
_____________________________________ ___________________ _____________ _______
1 ? 8.37 ML ? 3,22E+00 ? 5,79
2 ? 9.59 M R ? 8,39E-01 ? 1,51
3 2 12.32 MLr Laktat 2,60E+01 1,50E+01 46,84
4 5 14.61 Mlr Acetate 6,72E+00 5,71E+00 12,09
5 ? 15.77 MlR ? 8,53E-01 ? 1,54
6 6 17.15 MLr 1,3-PDO 1,74E+01 9,20E+00 31,32
7 7 19.13 MlR Methanol 1,78E-01 2,92E-01 0,32
8 ? 20.24 MLR ? 3,26E-01 ? 0,59
------------ ------------ ------
5,56E+01 3,02E+01 100
No. PNo Ret.Time Type Name Area Amount Rel.Ar
min mV*min g %
_____________________________________ ___________________ _____________ _______
1 ? 8.14 MLR ? 2,73E+00 ? 3,09
3 2 12.29 MLR Laktat 6,72E+01 3,87E+01 76,02
4 5 14.60 MLR Acetate 5,84E+00 4,97E+00 6,61
5 6 17.14 MLR 1,3-PDO 1,20E+01 6,26E+00 13,53
6 ? 20.50 MLR ? 6,60E-01 ? 0,75
------------ ------------ ------
8,84E+01 4,99E+01 100
Blöd ist, dass ich hier in den ersten beiden Zeilen die Datei vorgebe
ChDir "H:\Doktorarbeit\Fermentationen_TUHH\Analytik\Standards Juni_10"=WENN(C12="Laktat";D12)+WENN(C13="Laktat";D13)+...Option Explicit
Sub Open_All_Files()
Dim oWbk As Workbook
Dim sFil As String
Dim sPath As String
sPath = "C:\Documents and Settings\Roy Cox\My Documents\" 'location of files
ChDir sPath
sFil = Dir("*.xlsx") 'change or add formats
Do While sFil <> "" 'will start LOOP until all files in folder sPath have been looped through Set oWbk = Workbooks.Open(sPath & "\" & sFil) 'opens the file
'do something
oWbk.Close True 'close the workbook, saving changes
sFil = Dir
Loop ' End of LOOP
End Sub Sub Open_All_Files()
Dim oWbk As Workbook
Dim sFil As String
Dim sPath As String
sPath = "C:\Test\" 'location of files
ChDir sPath
sFil = Dir("*.*") 'change or add formats
Do While sFil <> "" 'will start LOOP until all files in folder sPath have been looped through
Workbooks.OpenText (sPath & "\" & sFil), Origin:=xlMSDOS, _
StartRow:=1, DataType:=xlFixedWidth, FieldInfo:=Array(Array(0, 1), Array(22 _
, 1), Array(37, 1), Array(57, 1), Array(69, 1)), TrailingMinusNumbers:=True
oWbk.Close True 'close the workbook, saving changes
sFil = Dir
Loop ' End of LOOP
End Sub
oWbk.Close True womit vermutlich zwar Workbooks.Open aber nicht Workbooks.OpenText verarbeitet werden kann. .
.
.
Do While sFil <> "" 'will start LOOP until all files in folder sPath have been looped through
Set oWbk = Workbooks.OpenText (sPath & "\" & sFil), Origin:=xlMSDOS, _
.
.
.
.
.
.
, 1), Array(37, 1), Array(57, 1), Array(69, 1)), TrailingMinusNumbers:=True
ActiveWorkbook.Close True 'close the workbook, saving changes
sFil = Dir
Loop ' End of LOOP
End Sub
.
.
Do While sFil <> "" 'will start LOOP until all files in folder sPath have been looped through
Workbooks.OpenText Filename:=sPath & "\" & sFil, Origin:=xlMSDOS, _
StartRow:=1, DataType:=xlFixedWidth, FieldInfo:=Array(Array(0, 1), Array(22 _
, 1), Array(37, 1), Array(57, 1), Array(69, 1)), TrailingMinusNumbers:=True
Set oWbk = ActiveWorkbook
'weiterer Code
'in dem auch andere
'offene WBs aktive
'werden können
oWbk.Close False 'close the workbook, saving changes
sFil = Dir
Loop ' End of LOOP
End Sub
variablenwert aus vba-programmierung in zelle bei excel einfügen
mabo 10.06.2009 - 267 Hits - 2 Antworten
Excel Daten automatisch in einer anderen Excel Datei kopieren
Dutchi1972 01.10.2009 - 1325 Hits - 3 Antworten
Werte in Zelle auf mehrere Zellen aufteilen in Excel 2007
knorkmaster 22.02.2010 - 366 Hits - 2 Antworten
Excel 2007 - Wert einer Zelle mit einer Eingabe vergleichen und...
AlexBrother 01.04.2010 - 429 Hits - 9 Antworten
Tabellenfeld aus Word-Datei auslesen und in Excel-Datei einfügen
jojo7 09.07.2010 - 559 Hits - 20 Antworten