View Single Post
 
Old 06-07-2023, 03:55 AM
maw444 maw444 is offline Windows 10 Office 2019
Advanced Beginner
 
Join Date: Feb 2021
Posts: 40
maw444 is on a distinguished road
Default How to refer to a file in the same directory

I have a document where a user opens the document and it runs a macro.

I want to have a tick box so that if a user clicks 'yes' it adds the text from a Word file which is stored in the same directory as the 'macro' base file is stored.

How do I refer to this? I know to use the file name but does Word / VBA assume it will be in the same directory? If not how do I tell it?
Reply With Quote