Hi i want to open a txt file but it changes every month so i need to be able to select the new one browse through the map.
I am a complete beginner with VBA and i recorded the macro but when going in the specific coding part I don't really know most stuff.
Sub Medical_txt_excel()
With ActiveSheet.QueryTables.Add(Connection:= _
"TEXT;C:\Users\user101\Documents\Macro Sales Monthly\Dec 2016-selected\Claim Medical.txt" _
, Destination:=Range("$A$10"))
.Name = "Claim Medical"
.FieldNames = True
.RowNumbers = False
.FillAdjacentFormulas = False
.PreserveFormatting = True
.RefreshOnFileOpen = False
i need the Claim Medical.txt to be a file i can select myself when using the macro without changing the source code every time