Forum Discussion
TheChameleon
Mar 31, 2025Copper Contributor
Pushing Updates to Multiple Excel Files That have The same Layout
I am the owner of file used by Mutiple locations throughout the US that all have the same exact same layout but have different data connections to each of the individual locations. When an update is...
Kidd_Ip
Apr 01, 2025MVP
VBA may help:
Sub UpdateFiles()
Dim MyDir As String, NextFile As String
MyDir = "C:\Path\To\Your\Files\" ' Update with your directory path
NextFile = Dir(MyDir & "*.xlsx")
While NextFile <> ""
Workbooks.Open (MyDir & NextFile)
' Apply your updates here
Workbooks(NextFile).Save
Workbooks(NextFile).Close
NextFile = Dir()
Wend
End Sub
- TheChameleonApr 01, 2025Copper Contributor
Thank you! I will give it a try