Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 12-01-2022, 01:18 AM
JamesMWood JamesMWood is offline Attach file VBA with SharePoint file Windows 10 Attach file VBA with SharePoint file Office 2021
Novice
Attach file VBA with SharePoint file
 
Join Date: May 2022
Posts: 25
JamesMWood is on a distinguished road
Question Attach file VBA with SharePoint file

Hiya

I have a VBA that automatically attaches files to a draft email, and it works fine. But when it comes to SharePoint files, it adds %20 into the file names.

Whereas if I attach the SharePoint file manually by going to Attach File > Browse this PC > and I put in the whole URL path to the file, it asks if I want to attach a copy, and I click that, and it adds it without %20 in the filename.

So I'm not sure why it adds %20 when it's via VBA? I've tried removing https: from the string for the path, but it just gets hung up unless I'm using ActiveX, which I'm trying to avoid now since it's gone defunct, so that doesn't work.



Let me know your thoughts!!

Thanks all
James
Reply With Quote
 

Tags
attachment, sharepoint, vba



Similar Threads
Thread Thread Starter Forum Replies Last Post
Attach file VBA with SharePoint file Attach .xlsm file to Outlook email from whatever folder it's been saved in kiwimtnbkr Excel Programming 1 04-02-2022 11:32 PM
Cannot find file to attach in email megabyte Outlook 0 09-23-2020 05:35 AM
Button with VBA to attach a file in a protected document wolfgrrl Word VBA 6 09-20-2019 07:38 AM
Attach file VBA with SharePoint file Having Touble Finding Word File When Trying to Attach to Email freetibet213 Word 3 12-28-2011 05:26 AM
Attach a Excel file with Power point gmalpani Office 0 11-27-2011 03:11 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 06:55 PM.


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