Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 08-18-2016, 04:41 AM
Neilesh Neilesh is offline Encrypt PDF only for editing after conversion from excel Windows 10 Encrypt PDF only for editing after conversion from excel Office 2013
Novice
Encrypt PDF only for editing after conversion from excel
 
Join Date: Aug 2016
Posts: 5
Neilesh is on a distinguished road
Default Encrypt PDF only for editing after conversion from excel

Hi Experts,



Here are below codes for converting the the file from excel to pdf with the required name of the file. Can you please provide the macro with the present macro for protecting the pdf after conversion from editing in any manner.



Private Sub CommandButton2_Click()
'saves the file as PDF and adds a date parameter to the name of the file


aux1 = ""
If Month(Date) < 10 Then
aux1 = "0"
End If
aux2 = ""
If Day(Date) < 10 Then
aux2 = "0"
End If


fileN = "Salary Slip of " & Workbooks.Application.Sheets("Salary Slip").Cells(10, 5).Value
fileD = Format(Sheets("Salary Slip").Cells(6, 2).Value, "mmm-yy")




ActiveSheet.ExportAsFixedFormat Type:=xlTypePDF, Filename:=ThisWorkbook.Path & "\" & fileN & " for " & fileD & ".pdf", _
Quality:=xlQualityStandard, IncludeDocProperties:=True, IgnorePrintAreas _
:=False, OpenAfterPublish:=True


End Sub


Please help me out experts.

Regards,

Neilesh
Reply With Quote
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
Encrypt PDF only for editing after conversion from excel f2 function in excel 2013 for editing/viewing msnarayanan Excel 1 08-03-2015 02:41 AM
Encrypt PDF only for editing after conversion from excel Can I encrypt a document in Word Starter 2010? chicken legs Word 2 03-03-2013 01:59 PM
Excel / Access 2010 Time field conversion djsn Excel 0 05-24-2012 09:55 AM
Encrypt PDF only for editing after conversion from excel Need help editing a .PDF to .DOC conversion Bobosmite Word 1 05-06-2011 05:18 AM
Encrypt outlook folders whatever61 Outlook 4 12-21-2010 05:26 PM

Other Forums: Access Forums

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