I'm kinda embarrassed to ask this question but I've spent an hour doing searches and I haven't found the answer.
Anyway- Running VBA on a macbook pro w/ Big Sur.
I have a macro that takes the open excel file and copies it to another ("Backups") directory with a new filename that includes today's date.
The macro is names "MakeDatedBackup and thats what it does.
I know the path where I put it and it's always the same directory.
What happens is after a while the Backups directory gets cluttered with backup files.
What I want to happen is after the copy is made and put in the backup directory I need code to pop open Finder at the Backups directory, showing the user all the files in that dir. [The macro might end here]. The user then goes thru the files and manually deletes the ones he doesn't want anymore just as if he was in Finder (he IS in Finder). Then he closes Finder and everything's back to normal. This would the last function of the macro.
I'm thinking it's a simple one line command but I can't figure it out.
Anyway- Running VBA on a macbook pro w/ Big Sur.
I have a macro that takes the open excel file and copies it to another ("Backups") directory with a new filename that includes today's date.
The macro is names "MakeDatedBackup and thats what it does.
I know the path where I put it and it's always the same directory.
What happens is after a while the Backups directory gets cluttered with backup files.
What I want to happen is after the copy is made and put in the backup directory I need code to pop open Finder at the Backups directory, showing the user all the files in that dir. [The macro might end here]. The user then goes thru the files and manually deletes the ones he doesn't want anymore just as if he was in Finder (he IS in Finder). Then he closes Finder and everything's back to normal. This would the last function of the macro.
I'm thinking it's a simple one line command but I can't figure it out.