I have the following code in a workbook and it works perfectly, it opens the corresponding csv file, updates information and closes the csv, I am trying to change the address from being written into the code to being retrieved from a cell reference.
Any advice is much appreciated.
Sub GetFile()
Workbooks.Open "C:\Users\jamie\AppData\Roaming\MetaQuotes\Terminal\06980EAAF7FCC460D7BD131105CC8618\MQL4\Files\BSA_Transactions\BSA_Transactions.csv", UpdateLinks:=1
ActiveWorkbook.Close SaveChanges:=True
End Sub
Any advice is much appreciated.
Sub GetFile()
Workbooks.Open "C:\Users\jamie\AppData\Roaming\MetaQuotes\Terminal\06980EAAF7FCC460D7BD131105CC8618\MQL4\Files\BSA_Transactions\BSA_Transactions.csv", UpdateLinks:=1
ActiveWorkbook.Close SaveChanges:=True
End Sub