Hello,
I have a big problem, I don't understand if the path is wrong but the fact is that it gives me an error. Runtime 68 device not available
I have a big problem, I don't understand if the path is wrong but the fact is that it gives me an error. Runtime 68 device not available
VBA Code:
Sub AllFiles()
Dim folderPath As String
Dim filename As String
Dim wb As Workbook
folderPath = "Macintosh HD:Users:Desposa:Desktop:cdfe:" 'change to suit
If Right(folderPath, 1) <> "\" Then folderPath = folderPath + "\"
filename = Dir(folderPath & "*.xlsx")
Do While filename <> ""
Application.ScreenUpdating = False
Set wb = Workbooks.Open(folderPath & filename)
'Call a subroutine here to operate on the just-opened workbook
Call DeleteAllEmptyRows
Call UnmergeAllCells
Call insertlinea
Call valuea56
filename = Dir
Loop
Application.ScreenUpdating = True
End Sub