Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old Yesterday, 06:16 AM
gmaxey gmaxey is offline Help with Folder Picker for Mac Windows 10 Help with Folder Picker for Mac Office 2019
Expert
Help with Folder Picker for Mac
 
Join Date: May 2010
Location: Brasstown, NC
Posts: 1,621
gmaxey is just really nicegmaxey is just really nicegmaxey is just really nicegmaxey is just really nicegmaxey is just really nice
Default Help with Folder Picker for Mac


Hello. I have a process that works with a PC for a user to select a folder and then process all Word documents in that folder.


I need a version that will work with a Mac but don't have a Mac to test with. Hoping someone here can assist.


The document is attached, but here is the folder picker code I have cobbled together but can't test.


Code:
Function fcnFolderPickerMac() As String
Dim strPath As String
Dim strRoot As String
Dim strScript As String
'This is the function that I have no way to test.
  On Error Resume Next
  'Enter the Start Folder, Desktop in this example,
  strRoot = MacScript("return POSIX path of (path to desktop folder) as String") 'How would you change this make the root say "D:\Test" ?
  'Make the path Colon seperated for using in MacScript
  strRoot = MacScript("return POSIX file (""" & strRoot & """) as string")
  'Make the Script string
  strScript = "return POSIX path of (choose folder with prompt ""Select the folder""" & " default location alias """ & strRoot & """) as string"
  'Run the Script
  strPath = MacScript(strScript)
  On Error GoTo 0
  If strPath <> "" Then fcnFolderPickerMac
lbl_Exit:
  Exit Function
 End Function
Questions: 1. Can the attached document be opened and the process run without error? 2. As written, does the script above allow the user to navigate to any folder on their Mac? 3. How to modify script so that the default root path is something other than the user's desktop e.g., D:\Outline Folder?


Thank you.
Attached Files
File Type: docm Outline Processes for Mac Ver 1.2.docm (80.3 KB, 0 views)
__________________
Greg Maxey
Please visit my web site at http://www.gregmaxey.com/
Reply With Quote
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
Help with Folder Picker for Mac Date Picker work-around enigmaes Word 1 10-14-2014 07:15 AM
Possible to link a date picker to another date picker? tubbz Word 0 05-07-2014 01:23 PM
Help with Folder Picker for Mac Calculating age of something from a Date Picker BoringDavid Word VBA 12 01-13-2014 02:40 AM
Help with Folder Picker for Mac Date Picker Andy2011 Word VBA 4 11-24-2012 10:07 PM
Date picker trintukaz Excel 0 12-30-2011 12:42 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 06:03 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