Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #3  
Old 10-09-2023, 04:59 AM
yanyan9896 yanyan9896 is offline Potential Clashes in Macros - Seeking Assistance Windows 10 Potential Clashes in Macros - Seeking Assistance Office 2019
Novice
Potential Clashes in Macros - Seeking Assistance
 
Join Date: Oct 2023
Posts: 13
yanyan9896 is on a distinguished road
Default

Quote:
Originally Posted by Italophile View Post
The BrowseForFile function adds a filter to the File Picker dialog. As MergeMultiDocsIntoOne uses the same dialog without setting a filter it will inherit the filter from the previously used function.

The solution is simple - clear the filters, and optionally set a filter for the required file types, for the File Picker in your MergeMultiDocsIntoOne routine. You can simply copy and paste from the other function, e.g.

Code:
  With dlgFile
    .AllowMultiSelect = True
    .Filters.Clear
    .Filters.add "Word documents", "*.doc,*.docx,*.docm"

Thank you for your helpful explanation regarding the BrowseForFile function and its impact on the MergeMultiDocsIntoOne routine. I appreciate your suggestion to clear the filters and set a filter for the required file types in the File Picker dialog. I will implement this solution by copying and pasting the filter code from the other function.

Once again, thank you for your assistance.
Reply With Quote
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
Potential Clashes in Macros - Seeking Assistance Seeking help with Cross-Reference Links Beween Documents SAikins Word 5 05-18-2018 06:15 AM
Potential Clashes in Macros - Seeking Assistance Seeking help recreating a template from the internet AwesomeWithAQ Word 5 01-12-2018 11:13 AM
Potential Clashes in Macros - Seeking Assistance Seeking advice as to how to align items in an office directory that I made using PowerPoint mcsharpe PowerPoint 1 10-12-2015 04:21 PM
Seeking PowerPoint Freelance Help gazdabitner PowerPoint 0 12-06-2010 02:12 PM
Seeking Excel Expert Advice for Web Publishing tjmichner Excel 0 10-25-2006 08:40 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 12:46 AM.


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