Hello, I am using VBA in Excel 2010, and have this workbook and an Access database mdb file in the one folder called workbooks.
To extract data from the database to the workbook, I need to know the full address of the folder ie like C:\Usder\ My Documents\workbooks....... The locatioon of the workbooks folder can change when I am using different computers, so need to do it automatically.
Can anyone please advise how to get the current path of the workbook's folder as a string variable?
To extract data from the database to the workbook, I need to know the full address of the folder ie like C:\Usder\ My Documents\workbooks....... The locatioon of the workbooks folder can change when I am using different computers, so need to do it automatically.
Can anyone please advise how to get the current path of the workbook's folder as a string variable?
Last edited: