Avatar of James Talvy
James Talvy
Flag for United States of America asked on

Override for 218 character limit for filename & path when saving through VBA

I have a macro that publishes a PDF file and saves it to a shared directory. The filepath is quite long and I often run into the situation where the filename and path exceed the 218 character limit set in Excel. Is there a workaround for this? I am unable to use relative paths since this will be used by multiple users that may have the drives mapped differently.
Microsoft ExcelVBAWindows OS

Avatar of undefined
Last Comment
bbao

8/22/2022 - Mon
Rgonzo1971

Hi,

It doesn't seem possible
https://support.microsoft.com/en-us/kb/213983

Regards
ltpitt

Change the file naming policy, I do not see many other solutions
John

DON'T.  Shorten the filenames, else you be back saying something else does not work. Filenames that are too long is a universally bad idea.
I started with Experts Exchange in 2004 and it's been a mainstay of my professional computing life since. It helped me launch a career as a programmer / Oracle data analyst
William Peck
ASKER CERTIFIED SOLUTION
bbao

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.