Thanks, you have reduced my job per item from 45 seconds to 5 seconds, I had to make 348 pdfs so you can imagine how much time you have saved me.
@AjayAnandXLnCAD4 жыл бұрын
Glad to hear that :)
@JimmyHutchison-b4g8 ай бұрын
I use the Publish to PDF command after adding the command into the home ribbon in its own group. Works great too!
@m.ssharma535 Жыл бұрын
Exactly what I was looking for. Create a dashboard in excel and send that PDF.
@deniseoliver65673 жыл бұрын
Thank for for not holding your knowledge hostage! Your expertise is much appreciated. Thank you.
@AjayAnandXLnCAD5 жыл бұрын
Macros explained vidoes of XL n CAD can be downloaded from the following link xlncad.com/macros-excel/
@helenshanmugam19634 жыл бұрын
Thank you very much Ajay. Your step by step guide helped me to accomplish what I wanted to create.
@AjayAnandXLnCAD4 жыл бұрын
You are most welcome
@ossiangranit48912 жыл бұрын
Hi, thanks for this, its exactly what I need, however, I'm getting a "error while printing message" --> Run-error '1004' Application-defined or object-defined error. I think its because I am on a mac and the filename i'm using isnt correct. How do I write this code so it works on a mac? Thanks in advance!
@sharrongay1708 Жыл бұрын
Thank you so much. This video has solved an issue I have been struggling with for quite awhile.
@AjayAnandXLnCAD2 ай бұрын
My pleasure 😀
@janijohn59452 жыл бұрын
Hi, Thnks For the video. I need a small change here, for full workbook print i can use ActiveWorkbook, what if i have to ignore the first page and save all other pages as single pdf
@mohammedjunaidhussain7691 Жыл бұрын
@ajay anand br how to write code for ID which i need from two or three cells ?
@mahirbadanagki3 жыл бұрын
can the user choose the file where the pdf would be saved manually using window dialog instead of writing the path?
@shanjose1583 Жыл бұрын
Thank you for the tutorial. Much appreciated. I do have a question. Will it download the file as PDF in the Download folder if the Filename is not mentioned?
@ajmersinghjadoun23674 жыл бұрын
Very Nice Video. Done we can make PDF of all Paysilp on one click.
@balance1772 Жыл бұрын
Thank you so much, brother.!!! Could you please make one more video on creating multiple Excel files to PDF at once?
@AjayAnandXLnCAD2 ай бұрын
My pleasure 😀
@mohanvaze13 жыл бұрын
Excellent narration. Very easy to follow. Thank you Ajay
@TariqJahangeer4 жыл бұрын
Thanks for your tutorial sir,could you please explain me we are making different different Clint PO/QUOTATION with each Clint have each folder name how to give file path in VBA code ? is there is any another option to save pdf file as multiple path ......Thanks
@autobahnmensch2 жыл бұрын
excellent, exactly what I needed, worked the first time, thank you
@premnathkrishnan3202 жыл бұрын
Awesome sharing, saved tons of time for me for saving report.
@Ajaggi813 жыл бұрын
Very useful video. Is there a way to print them all together rather than one by one
@sugiartosugiarto5306 Жыл бұрын
how if we need to print chart also, how we write the skrip bro?? thanks
@adhowie Жыл бұрын
great video an easy method ,is it possible to use two separate cells as the saved file name?
@shibubaby62094 жыл бұрын
Thanks sir for vba tutorial, Is there is possible to create non editable pdf this same way
@AjayAnandXLnCAD4 жыл бұрын
You are welcome. It should be possible with a third party software, but I haven't tried it yet.
@udayhyd91504 жыл бұрын
very good video, very useful
@AjayAnandXLnCAD4 жыл бұрын
Glad you think so!
@jeromgerald5 жыл бұрын
Very useful video tutorial ... 👍 and thanks for the download link...
@AjayAnandXLnCAD5 жыл бұрын
Happy that you find it useful. and thanks for leaving a feedback :)
@davidhermosilla69425 ай бұрын
Hello, can you please explain how did you have saved only the table and not other information in the spreadsheet?
@sweetjeba19812 жыл бұрын
Very Very Useful for me... Thanks a lot
@amolpathakndb3 жыл бұрын
excellent video sir
@AjayAnandXLnCAD3 жыл бұрын
Thank you :)
@indianhiddengems71372 ай бұрын
What if I need to multiple tab so do I need use the same formula again'
@Liam-fb4tu3 жыл бұрын
This is a great video Ajay! Thanks very much. Can I ask how could I get this to run automatically when the spreadsheet is opened rather than having to click a button? I have a spreadsheet that’s exported from an application that I want to convert straight to pdf
@darxcyber3 жыл бұрын
great video, really informative. i have a question though, can you do this with multiple worksheets in a work book and assign to one pdf function?
@jaythumar120111 ай бұрын
Thanks a lot, its really Good Informative .....
@MustafaAhmed-mb7hu4 жыл бұрын
Excellent work there......how does the program determine the printable area.....since there was no reference to the same in your vba coding
@AjayAnandXLnCAD4 жыл бұрын
You should set the print area. I already had it.
@Someone-xg1ff4 жыл бұрын
@@AjayAnandXLnCAD How do I do that?
@umairatulafiqah65344 жыл бұрын
Thank you soo much Ajay for this video. Really helped me? Is it possible if it automatically creates a new file name and the pdf file is saved there?
@AjayAnandXLnCAD4 жыл бұрын
can you please explain it with an example?
@tomastotori56004 жыл бұрын
Sir I have cells from a to g so how to make so that all the cells are Included in the pdf. In the coding part you wrote d cell but I have more cells how to make.sir also help me in adjusting the alignment
@AjayAnandXLnCAD4 жыл бұрын
Maybe I will write on this topic in my blog.
@juliaalonzo74894 жыл бұрын
Thanks! Very helpful video. May I ask if I can also save this in Sharepoint or other cloud based storage so that the generated PDFs will be saved in that location?
@AjayAnandXLnCAD4 жыл бұрын
I haven't tried that yet. But this is an interesting suggestion. Will let you know once I develop a solution for this.
@mariamokoena74484 жыл бұрын
Has anyone tried using the macro and saving in SharePoint?
@imankassim952 жыл бұрын
how do i create the table in payslip using the employee details. wht is the key word to learn
@ahmedhelal9203 жыл бұрын
thanks , what about if i have 5 excel files and i need to convert all of them to PDF ? how can i do this with macro ?
@cobra7778884 жыл бұрын
Thankyou so much Ajay, this macro saves my time.
@AjayAnandXLnCAD4 жыл бұрын
Glad to hear that
@HandsomeHunk1618 Жыл бұрын
Hello Ajay ji..... One query. Pls address. How to generate pdf for each unique user in a filter in whole data of Excel?
@jignesh3182 жыл бұрын
Google work sheet mai same setting possible hai??
@smisinu3 жыл бұрын
Thank you so much for the video
@AjayAnandXLnCAD3 жыл бұрын
You are so welcome!
@patpat52962 жыл бұрын
Nice job Ajay! When clicking the button, would it be possible instead to send the PDF via email to a customer's email (already written on the excel sheet)?
@AjayAnandXLnCAD2 жыл бұрын
Yes. but it's one of our different products for sale. Check the videos of XL n CAD Products for more details.
@patpat52962 жыл бұрын
@@AjayAnandXLnCAD I dont understand. Can you show me a link where I can buy the macro? My goal is to push a button on a worksheet and it automatically converts to a PDF and then email to a customer's email already written on a cell in that worksheet.
@sbxcel3 жыл бұрын
It's great! How can I set the file location if this file is sent to other PCs? Thanks
@chiranjeebdhar49414 жыл бұрын
Thank you Sir. Very nice video. If I want to select a range in my excel template and convert to pdf- if you please guide on this what will be the vba code
@chiranjeebdhar49414 жыл бұрын
If you please advise on the above query?
@AjayAnandXLnCAD4 жыл бұрын
You can define the print area using a statement like the following Worksheets("Sheet1").PageSetup.PrintArea = "$A$1:$C$5"
@chiranjeebdhar49414 жыл бұрын
Thanks Sir. If you please advise where in the code I will insert this line in the module.
@sneekc21463 жыл бұрын
You’re amazing! Thank you
@AjayAnandXLnCAD3 жыл бұрын
You're so welcome!
@ahmedabdulmonem76654 жыл бұрын
great work sir I have a question, how can I create the pdf in landscape mode
@AjayAnandXLnCAD4 жыл бұрын
You have to set the Print area before executing the Macro
@centuriongamers26742 жыл бұрын
Sir can you help to to same in google sheets
@karuppusamyn5153 жыл бұрын
Thanks you sir... How to create pdf Same method from selected multiple ID number in single pdf documents like ID number selection
@aaronyap45154 ай бұрын
My exported PDF was pagebreak into other pages because of hidden columns and rows, for example hidden column B-E, hence column A one page, column F another page, is there any code that can fix this?
@gillesdevriendt95754 жыл бұрын
Hello, Thank you for this amazin upload! Would it be possible to let some nothification pop u when you try to save it twice? Thank in advance!
@johandaugaarddrejer90092 жыл бұрын
Very useful, well done!
@goldilocks19643 жыл бұрын
Excellent explainer video, Jay! Thank you a lot! Oh, how would I add today's date and time to the file name during the save process?
@AjayAnandXLnCAD3 жыл бұрын
Thank you. For time stamps in file names, refer the following blog post. www.extendoffice.com/documents/excel/4413-excel-timestamp-filename.html
@billydamanik47844 жыл бұрын
Hi Ajay, How to use loop function if I want to create PDF for all payroll automatically. Thanks
@AjayAnandXLnCAD4 жыл бұрын
Hi Billy, please watch my video on Loops in VBA.
@billydamanik47844 жыл бұрын
@@AjayAnandXLnCAD would you mind telling me which video you mention. I am new to macro. So please help me :)
@motivation_AI_success4 жыл бұрын
Nice and helpful video. Is there is possible to create all employees payslip in one click button.
@AjayAnandXLnCAD4 жыл бұрын
Yes
@ShivaKiranT Жыл бұрын
What happens if the file name already exists in the folder? Will it asks to replace the old file with the new or it just gives error?
@shahzadisrani26163 жыл бұрын
Sir it is great to see your video, we can make pdf by save as type but my query is if i have 5 sheets & want to save 3 sheets in pdf by 1 click so is it possible?
@Goofayball24 күн бұрын
How does this work on Mac
@linggeshwaraan26633 жыл бұрын
Thank you so much :). This really helps me.
@ramzein7764 жыл бұрын
does it save twice if I click x 2 ?
@AjayAnandXLnCAD4 жыл бұрын
The file will get replaced.
@ramzein7764 жыл бұрын
@@AjayAnandXLnCAD Thanks sir Sub CreatePdf() Dim ID As String ID = Range("H19").Text ActiveSheet.ExportAsFixedFormat _ Type:=xlTypePDF, _ FileName:="Data:\Payslip\" + ID + ".pdf", _ IgnorePrintAreas:=False, _ OpenAfterPublish:=False file Path/ Volumes/Macintosh HD - Data This what I did and using a Mac , it doesn't work kindly advise
@vinodkumar-uo5lx4 жыл бұрын
Sir is it workable in Office2007 or not.? Kindly suggest
@AjayAnandXLnCAD4 жыл бұрын
Yes. It will work with Excel 2007
@dikky33492 жыл бұрын
can it to be automatic?, because i have 454 data to convert into PDF. and thank you very much it really helpfully me to reduce time work.
@wasimferoze1714 жыл бұрын
If advice how the same can be saved with Date
@AjayAnandXLnCAD4 жыл бұрын
Like TODAY function in Excel, DATE function in VBA will return the current date. Store the current date into a variable using DATE function and append that variable to the end of the file name.
@wasimferoze1714 жыл бұрын
@@AjayAnandXLnCAD thanks for your reply...👍
@kshitijshinde41923 жыл бұрын
Hi..sir can we give filename i.e to save pdf in network path
@khajashamshuddin36555 жыл бұрын
Very helpful. thank you
@AjayAnandXLnCAD5 жыл бұрын
My Pleasure
@SwetaJindal-db7ed Жыл бұрын
hi ... Can you help.. I got stuck with code for PDF generation.
@mohammedomran54584 жыл бұрын
Couldn't subscribe in order to download the ready macros.. would you share it? Thanks
@AjayAnandXLnCAD4 жыл бұрын
Visit xlncad.com/macros-excel/
@mohammedomran54584 жыл бұрын
Ajay Anand Thank you for your response
@tomastotori56004 жыл бұрын
Hi sir, it says can't run the macro book 1button the macro may not be in this workbook or so macros are disabled
@AjayAnandXLnCAD4 жыл бұрын
If the Macros are disabled, you can enable them by following the steps given below. Got to File tab > Options > Trust Center > Trust Center Settings > Macro Settings > Select Enable all macros > Click OK
@tomastotori56004 жыл бұрын
@@AjayAnandXLnCAD tq sir.
@psaha7584 Жыл бұрын
Thank u so much sir
@أخصائيمشتريات4 жыл бұрын
Sir ajay Type:=xlTypepdf, _ Showing expected identifier.... Erorr Pls help me how can I solve it
@AjayAnandXLnCAD4 жыл бұрын
Identifier Error means you have used the reserved words as the name of consts or variables.
@أخصائيمشتريات4 жыл бұрын
It is work... Thanks a lot with highly appreciated.
@havelotz Жыл бұрын
Can you make this type of video for google sheets pls
@anubhesh3 жыл бұрын
I made a pdf. If the file is open and press the print button Will this command over write it ❓️like wise how to combine all the PDF. Code for that also
@coolraghumiskin095 жыл бұрын
SIR I AM FEELING VERY HAPPY FOR YOUR SUPPORT , I AM FINDING DIFFICULTY IN CREATING A PDF THERE IS A ERROR >>>>> RUN TIME ERROR 5
@AjayAnandXLnCAD5 жыл бұрын
I tested the program before sending it to you and it was working properly. I would like to remind that there should be a folder called Raghav In your E: Drive
@coolraghumiskin095 жыл бұрын
@@AjayAnandXLnCAD Sir, I Have firstly created the folder and then executed the VBA, But it is not working properly.
@harshaldeshmukh98704 жыл бұрын
Can we convert the Excel table to word file with additional data at specific para. Please guide Thanks in anticipation
@AjayAnandXLnCAD4 жыл бұрын
Can you please explain the issue with an example?
@nicolegrater4 жыл бұрын
This is very helpful! Thank you! Is there a way to automate this for a group of statements? I have 100+ single statements to save that need to be converted to pdf. Instead of selecting each one and then converting, is there a way they can all be created automatically?
@AjayAnandXLnCAD4 жыл бұрын
You need to place the statements inside a 'For' loop. I suggest to watch my video on this topic for a better picture.
@yasmeenhameed21484 жыл бұрын
@@AjayAnandXLnCAD please can you send the link of your video that explaining this topic Thanks
@mohdrazlanjaafar76783 жыл бұрын
@@AjayAnandXLnCAD ya. I still cannot find the loop for run the dropdown list
@cpusamath2 жыл бұрын
@@AjayAnandXLnCAD Link Please
@jnmendoza10472 жыл бұрын
link for loop pls..
@tegalinks012 жыл бұрын
I want to do a similar thing for a list of about 400 employees but I am having issues with the deduction aspect because not all employees have the same number of deductions. Some are more than others. I need help please
@shivakumar-in8mc2 жыл бұрын
Thank you so much
@HarryUnchained2 жыл бұрын
Is there any way to automatically generate PDF for all IDs in the drop down list with 1 click?
@marcelwolters83152 жыл бұрын
exactly my question too
@ravikumarbokke12443 жыл бұрын
HI, Can we get the code
@MdAshrafulIslamMilon2 жыл бұрын
Sub CreatePdf() (Showing Yellow Color) not working , can u help me ?
@haveagoharry49994 жыл бұрын
Class, thanks very much for this :)
@AjayAnandXLnCAD4 жыл бұрын
My pleasure :)
@huss99794 жыл бұрын
Video quality not good Please clear the code to can see
@AjayAnandXLnCAD4 жыл бұрын
You can check my website to copy the code.
@mihalio37394 жыл бұрын
Ajay, when i click on my print button, it generates 4 pages of pdf, my range is from A1:K52 so not that big, how can I compact this to just one the page? Thank you
@XLnCADMalayalam4 жыл бұрын
Michael, use the Page Layout tab to redefine your print area. This particular macro prints whatever is there in the print area.
@gauravKumar-cj5hu4 жыл бұрын
Pls confirm How Can we get pop up to save pdf file
@zigapodlesnik51063 жыл бұрын
when i click button it writes to me aplication-defined or object-defined error.... what could it be?
@ravikhande15464 жыл бұрын
Can we make PDF uneditable ...???
@AjayAnandXLnCAD4 жыл бұрын
Great suggestion. I haven't tried it until now. Will let you know if it works
@ravikhande15464 жыл бұрын
@@AjayAnandXLnCAD hope soon ...😀
@jasmeetsinghsaluja73903 жыл бұрын
Sir i want to save my file with invoice and customer name.. both are in different cell ... how can i do it.
@tutsecret4992 жыл бұрын
Try this, test it out, like an improvisation: in your client data sheet make one additional column combining &a1&" ,"&b1& the customer name with the invoice and preserving your existing columns. And when you pull your slip, you grab from the combined column customer with invoice set up on your validation list cell. I did that with client's name combined with the date of birth. When 100 client's are in line and comes in front of me, I can spot fast the date of birth next to the name when I filter it to make sure I am pulling the right client when I ask the client his birth to see if his name matches.
@MrLunesh8 ай бұрын
Sir plz solve my problem its not working i have written in same way...
@deepanrajchinnasamy30605 жыл бұрын
While creating pdf I am getting no printer error pls help me on this
@AjayAnandXLnCAD5 жыл бұрын
'No printer' error is related to the PDF creator in your computer. Please see whether you have Microsoft PDF maker or any other PDF Creator installed in your system.
@cajitendrarithadia45442 жыл бұрын
Hi, I want to save entire excel file in PDF format with file name as mentioned in excel and in the same folder in which excel file is stored. I have written VBA Code. Sub CreatePDF() ThisWorkbook.ExportAsFixedFormat xlTypePDF, openafterpublish:=True End Sub This VBA Code saves filed in documents folder of my PC but i want to save in the same folder in which excel file is located. Can you help in with VBA Code.
@meganspelman16604 жыл бұрын
Thank you for you video, I keep getting 1004 error. Can you please have a look at my code to see if you see anything that would cause this? ActiveSheet.ExportAsFixedFormat _ Type:=xlTypePDF, _ FileName:="Users atahn\Documents\Spelman Enterprises\AGFB ERIC\" + ID + ".pdf", _ IgnorePrintAreas:=False, _ OpenAfterPublish:=False Thank you for any assistance.
@AjayAnandXLnCAD4 жыл бұрын
Try the following code Sub CreatePdf() Dim ID As String ID = Range("D4").Text ActiveSheet.ExportAsFixedFormat _ Type:=xlTypePDF, _ Filename:="E:\Payslip\" + ID + ".pdf", _ IgnorePrintAreas:=False, _ OpenAfterPublish:=False End Sub
@sufalhalder17343 жыл бұрын
Run Time Error '5' Invalid procedure call or argument. how to fix that?
@krushnasuse12604 жыл бұрын
I have used excel 2007 i can't save this formulas please help.
@AjayAnandXLnCAD4 жыл бұрын
You should save this workbook as a Macro Enabled Workbook. Go to File Tab > Save As > Select Macro Enabled Workbook (.xlsm) format and Click OK
@davidjanelidze36124 жыл бұрын
Hi... can you help me: "Run-time error '-2147024773 (8007007b)': Document not saved"
@davidjanelidze36124 жыл бұрын
I've found the problem... :) thanks
@AjayAnandXLnCAD4 жыл бұрын
Great!
@ronaldremollena43004 жыл бұрын
@@davidjanelidze3612 how did you solve it? I am encountering the same problem
@CikguFzan4 жыл бұрын
Tq! very useful
@AjayAnandXLnCAD4 жыл бұрын
So nice of you
@ramakrishnanraghavan73422 жыл бұрын
I tried this VBA statement on my excel, it's doesn't work.
@lightofinspiration013 жыл бұрын
Sir, i dont have the developer option in my excel what should i do?
@AjayAnandXLnCAD3 жыл бұрын
On the File tab, go to Options > Customize Ribbon > Under Customize the Ribbon and under Main Tabs, Mark checkbox for Developer tab > Click OK
@darshankhire5855 Жыл бұрын
Thanks bro
@sainadh1543 жыл бұрын
How to create pdfs for all the employees in the drop down list automatically with one single click ? Please guide me.