Thema
|
Datum
|
Von Nutzer
|
Rating
|
Antwort
|
|
26.11.2019 20:44:55 |
Said |
|
|
|
26.11.2019 21:54:35 |
Mase |
|
|
|
26.11.2019 21:56:55 |
Gast34789 |
|
|
|
26.11.2019 22:05:23 |
Gast76631 |
|
|
|
26.11.2019 22:20:21 |
Mase |
|
|
|
26.11.2019 22:24:58 |
Gast54865 |
|
|
|
26.11.2019 22:27:35 |
Mase |
|
|
|
26.11.2019 21:54:35 |
Gast35790 |
|
|
|
26.11.2019 22:26:07 |
Mase |
|
|
|
27.11.2019 08:24:47 |
Gast36201 |
|
|
|
27.11.2019 08:28:44 |
Said |
|
|
|
27.11.2019 08:53:42 |
Mase |
|
|
|
27.11.2019 08:55:41 |
Mase |
|
|
Hinweis: Sub LoopThroughFiles() |
27.11.2019 09:01:52 |
Mase |
|
|
|
27.11.2019 10:03:03 |
Said |
|
|
Von:
Mase |
Datum:
27.11.2019 09:01:52 |
Views:
524 |
Rating:
|
Antwort:
|
Thema:
Hinweis: Sub LoopThroughFiles() |
Sub modLoopThroughFiles()
Dim wbk As Workbook
Dim wks As Worksheet
'
RootFolder = MacScript("return (path to desktop folder) as String")
If Val(Application.Version) < 15 Then
scriptstr = "(choose folder with prompt ""Select the folder""" & _
" default location alias """ & RootFolder & """) as string"
Else
scriptstr = "return posix path of (choose folder with prompt ""Select the folder""" & _
" default location alias """ & RootFolder & """) as string"
End If
folderPath = MacScript(scriptstr)
On Error GoTo 0
MyFolder = folderPath
MyFile = Dir(MyFolder)
Do While MyFile <> ""
Set wbk = Workbooks.Open(Filename:=MyFolder & MyFile, Password:="change")
Set wks = wbk.Worksheets(1)
With wks
'Workbooks(MyFile).Activate
.Rows("1:1").RowHeight = 20
.Range("A1").Select
.Range(Selection, Selection.End(xlToRight)).Select
.Range(Selection, Selection.End(xlDown)).Select
Selection.Borders(xlDiagonalDown).LineStyle = xlNone
Selection.Borders(xlDiagonalUp).LineStyle = xlNone
With Selection.Borders(xlEdgeLeft)
.LineStyle = xlContinuous
.ColorIndex = 0
.TintAndShade = 0
.Weight = xlThin
End With
With Selection.Borders(xlEdgeTop)
.LineStyle = xlContinuous
.ColorIndex = 0
.TintAndShade = 0
.Weight = xlThin
End With
With Selection.Borders(xlEdgeBottom)
.LineStyle = xlContinuous
.ColorIndex = 0
.TintAndShade = 0
.Weight = xlThin
End With
With Selection.Borders(xlEdgeRight)
.LineStyle = xlContinuous
.ColorIndex = 0
.TintAndShade = 0
.Weight = xlThin
End With
With Selection.Borders(xlInsideVertical)
.LineStyle = xlContinuous
.ColorIndex = 0
.TintAndShade = 0
.Weight = xlThin
End With
With Selection.Borders(xlInsideHorizontal)
.LineStyle = xlContinuous
.ColorIndex = 0
.TintAndShade = 0
.Weight = xlThin
End With
With Selection.Interior
.Pattern = xlNone
.TintAndShade = 0
.PatternTintAndShade = 0
End With
.Range("A1").Select
.Range(Selection, Selection.End(xlToRight)).Select
Selection.AutoFilter
.Range("A2").Select
.Range(Selection, Selection.End(xlDown)).Select
Selection.Font.Bold = False
End With
'
wbk.Close savechanges:=True
'
Set wks = Nothing
Set wkb = Nothing
'
MyFile = Dir
Loop
Application.ScreenUpdating = True
End Sub
|
- Bitte beschreiben Sie Ihr Problem möglichst ausführlich. (Wichtige Info z.B.: Office Version, Betriebssystem, Wo genau kommen Sie nicht weiter)
- Bitte helfen Sie ebenfalls wenn Ihnen geholfen werden konnte und markieren Sie Ihre Anfrage als erledigt (Klick auf Häckchen)
- Bei Crossposting, entsprechende Links auf andere Forenbeiträge beifügen / nachtragen
- Codeschnipsel am besten über den Code-Button im Text-Editor einfügen
- Die Angabe der Emailadresse ist freiwillig und wird nur verwendet, um Sie bei
Antworten auf Ihren Beitrag zu benachrichtigen
Bitte geben Sie ein aussagekräftiges Thema an.
Bitte geben Sie eine gültige Email Adresse ein!
- Bitte beschreiben Sie Ihr Problem möglichst ausführlich. (Wichtige Info z.B.: Office Version, Betriebssystem, Wo genau kommen Sie nicht weiter)
- Bitte helfen Sie ebenfalls wenn Ihnen geholfen werden konnte und markieren Sie Ihre Anfrage als erledigt (Klick auf Häckchen)
- Bei Crossposting, entsprechende Links auf andere Forenbeiträge beifügen / nachtragen
- Codeschnipsel am besten über den Code-Button im Text-Editor einfügen
- Die Angabe der Emailadresse ist freiwillig und wird nur verwendet, um Sie bei
Antworten auf Ihren Beitrag zu benachrichtigen
Thema
|
Datum
|
Von Nutzer
|
Rating
|
Antwort
|
|
26.11.2019 20:44:55 |
Said |
|
|
|
26.11.2019 21:54:35 |
Mase |
|
|
|
26.11.2019 21:56:55 |
Gast34789 |
|
|
|
26.11.2019 22:05:23 |
Gast76631 |
|
|
|
26.11.2019 22:20:21 |
Mase |
|
|
|
26.11.2019 22:24:58 |
Gast54865 |
|
|
|
26.11.2019 22:27:35 |
Mase |
|
|
|
26.11.2019 21:54:35 |
Gast35790 |
|
|
|
26.11.2019 22:26:07 |
Mase |
|
|
|
27.11.2019 08:24:47 |
Gast36201 |
|
|
|
27.11.2019 08:28:44 |
Said |
|
|
|
27.11.2019 08:53:42 |
Mase |
|
|
|
27.11.2019 08:55:41 |
Mase |
|
|
Hinweis: Sub LoopThroughFiles() |
27.11.2019 09:01:52 |
Mase |
|
|
|
27.11.2019 10:03:03 |
Said |
|
|