macro to open file with dynamic name on sharepoint

dshafique

Board Regular
Joined
Jun 19, 2017
Messages
171
Hi guys, I have this report that I update each day, and my process is:
1.) go to sharepoint
2.) look for file name
3.) download
4.) make my changes

for step 4, I already have a macro created to help me out with that. however, for steps 1-3, i was wondering if I could use some automation for that. I've used macros to get items from sharepoint before, however, this time my issue is that there's a new file I have to pull every day, and I dont know how to code it so it only pulls and uses the new one.

there are 3 new files on sharepoint everyday
- "Forecast (Jan 10) A-F"
-"Forecast (Jan 10) H-L"
-"Forecast (Jan10)"

I need the third file, the one without any suffix on it. The name changes every day, is there a way to program it so that excel looks for "Forecast (month, today)"?

any help would be appreciated.

thanks
 

Excel Facts

Excel Can Read to You
Customize Quick Access Toolbar. From All Commands, add Speak Cells or Speak Cells on Enter to QAT. Select cells. Press Speak Cells.

Forum statistics

Threads
1,213,544
Messages
6,114,249
Members
448,556
Latest member
peterhess2002

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top