Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 06-07-2023, 03:55 AM
maw444 maw444 is offline How to refer to a file in the same directory Windows 10 How to refer to a file in the same directory Office 2019
Advanced Beginner
How to refer to a file in the same directory
 
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
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
Strip out numbers from file names in a directory. JustJim Word VBA 2 10-20-2021 06:40 PM
How to refer to a file in the same directory Using Word VBA to change file names in a directory sg11 Word VBA 4 03-22-2018 04:25 AM
How to refer to a file in the same directory Changing file directory from a temp folder dwirony Word VBA 6 12-13-2016 09:41 PM
How to refer to a file in the same directory Replacing jpg file in each file of a directory hklein Word VBA 4 10-14-2013 04:40 PM
Auto-File Naming/ Default Directory Saves sgill32 Word 2 11-06-2008 02:12 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 12:25 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft