Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 05-14-2019, 04:32 AM
p45cal's Avatar
p45cal p45cal is offline VBA Not working Windows 10 VBA Not working Office 2016
Expert
 
Join Date: Apr 2014
Posts: 947
p45cal has a reputation beyond reputep45cal has a reputation beyond reputep45cal has a reputation beyond reputep45cal has a reputation beyond reputep45cal has a reputation beyond reputep45cal has a reputation beyond reputep45cal has a reputation beyond reputep45cal has a reputation beyond reputep45cal has a reputation beyond reputep45cal has a reputation beyond reputep45cal has a reputation beyond repute
Default


try changing the line which starts:
Code:
ActiveWorkbook.SaveAs…
to something along the lines of:
Code:
 ActiveSheet.ExportAsFixedFormat Type:=xlTypePDF, Filename:="C:\Documents and Settings\" & strUser & "\Desktop\Forecast\" & part1 & " " & part2 & " " & part3 & ".pdf", Quality:=xlQualityStandard, IncludeDocProperties:=True, IgnorePrintAreas:=False, OpenAfterPublish:=False
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Tasks Switch to Non-Working Days on Working Calendar danelloc Project 3 10-02-2017 12:38 PM
VBA Not working TOC Not Working Gary91 Word 3 01-21-2015 05:52 AM
VBA Not working working 4 10's, need help to set up rkirkland Project 1 12-19-2012 02:47 PM
GIF's stop working Kwarior PowerPoint 3 03-17-2010 09:59 PM
Spellchecker not working GR8Fandini Word 6 02-07-2010 01:12 PM

Other Forums: Access Forums

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