<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic How to perform 'save a copy as' PDF for a list of Inventor drawings from an excel using VBA? in Inventor Programming Forum</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-forum/how-to-perform-save-a-copy-as-pdf-for-a-list-of-inventor/m-p/9927723#M55133</link>
    <description>&lt;P&gt;I have list of Inventor drawings in an excel. I want to convert them as PDFs with their respective names in a specific location using excel VBA.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Mohammed Shuaib K&lt;/P&gt;</description>
    <pubDate>Wed, 09 Dec 2020 19:45:52 GMT</pubDate>
    <dc:creator>shuaib_cad</dc:creator>
    <dc:date>2020-12-09T19:45:52Z</dc:date>
    <item>
      <title>How to perform 'save a copy as' PDF for a list of Inventor drawings from an excel using VBA?</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/how-to-perform-save-a-copy-as-pdf-for-a-list-of-inventor/m-p/9927723#M55133</link>
      <description>&lt;P&gt;I have list of Inventor drawings in an excel. I want to convert them as PDFs with their respective names in a specific location using excel VBA.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Mohammed Shuaib K&lt;/P&gt;</description>
      <pubDate>Wed, 09 Dec 2020 19:45:52 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/how-to-perform-save-a-copy-as-pdf-for-a-list-of-inventor/m-p/9927723#M55133</guid>
      <dc:creator>shuaib_cad</dc:creator>
      <dc:date>2020-12-09T19:45:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to perform 'save a copy as' PDF for a list of Inventor drawings from an excel using VBA?</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/how-to-perform-save-a-copy-as-pdf-for-a-list-of-inventor/m-p/9928147#M55134</link>
      <description>&lt;P&gt;if you want to go to iLogic it would be more easy and you can do the following:&lt;/P&gt;&lt;PRE&gt;&lt;SPAN style="color: #ff0000;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;excelFileName&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;String&lt;/SPAN&gt; = &lt;SPAN style="color: #008080;"&gt;"C:\temp\files.xlsx"&lt;/SPAN&gt; &lt;SPAN style="color: #808080;"&gt;'&amp;lt;- Excel name&lt;/SPAN&gt;
&lt;SPAN style="color: #ff0000;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;excelSheetName&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;String&lt;/SPAN&gt; = &lt;SPAN style="color: #008080;"&gt;"Sheet1"&lt;/SPAN&gt; &lt;SPAN style="color: #808080;"&gt;'&amp;lt;- Excel sheet/tab name&lt;/SPAN&gt;
&lt;SPAN style="color: #ff0000;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;collumn&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;String&lt;/SPAN&gt; = &lt;SPAN style="color: #008080;"&gt;"A"&lt;/SPAN&gt; &lt;SPAN style="color: #808080;"&gt;'&amp;lt;- column with filenames&lt;/SPAN&gt;
&lt;SPAN style="color: #ff0000;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;rowNr&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;Integer&lt;/SPAN&gt; = 1 &lt;SPAN style="color: #808080;"&gt;'&amp;lt;- first row with filenames&lt;/SPAN&gt;

&lt;SPAN style="color: #800080;"&gt;GoExcel&lt;/SPAN&gt;.&lt;SPAN style="color: #800080;"&gt;Open&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;excelFileName&lt;/SPAN&gt;, &lt;SPAN style="color: #800000;"&gt;excelSheetName&lt;/SPAN&gt;)
&lt;SPAN style="color: #ff0000;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;fileName&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;String&lt;/SPAN&gt; = &lt;SPAN style="color: #800080;"&gt;GoExcel&lt;/SPAN&gt;.&lt;SPAN style="color: #800080;"&gt;CellValue&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;collumn&lt;/SPAN&gt; &amp;amp; &lt;SPAN style="color: #800000;"&gt;rowNr&lt;/SPAN&gt;)
&lt;SPAN style="color: #ff0000;"&gt;While&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;String&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;IsNullOrEmpty&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;fileName&lt;/SPAN&gt;) = &lt;SPAN style="color: #ff0000;"&gt;False&lt;/SPAN&gt;
	&lt;SPAN style="color: #ff0000;"&gt;Try&lt;/SPAN&gt;
		&lt;SPAN style="color: #ff0000;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;doc&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;DrawingDocument&lt;/SPAN&gt; = &lt;SPAN style="color: #800080;"&gt;ThisApplication&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Documents&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Open&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;fileName&lt;/SPAN&gt;)
		&lt;SPAN style="color: #ff0000;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;pdfFileName&lt;/SPAN&gt; = &lt;SPAN style="color: #800000;"&gt;IO&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Path&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;ChangeExtension&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;doc&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;FullFileName&lt;/SPAN&gt;, &lt;SPAN style="color: #008080;"&gt;".pdf"&lt;/SPAN&gt;)
		&lt;SPAN style="color: #808080;"&gt;' MsgBox(pdfFileName)&lt;/SPAN&gt;
		&lt;SPAN style="color: #800000;"&gt;doc&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;SaveAs&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;pdfFileName&lt;/SPAN&gt;, &lt;SPAN style="color: #ff0000;"&gt;True&lt;/SPAN&gt;)
		&lt;SPAN style="color: #800000;"&gt;doc&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Close&lt;/SPAN&gt;()
    &lt;SPAN style="color: #ff0000;"&gt;Catch&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;ex&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;Exception&lt;/SPAN&gt;
		&lt;SPAN style="color: #800000;"&gt;MsgBox&lt;/SPAN&gt;(&lt;SPAN style="color: #008080;"&gt;"Trouble in paradise while saving file: "&lt;/SPAN&gt; &amp;amp; &lt;SPAN style="color: #800000;"&gt;fileName&lt;/SPAN&gt;)
    &lt;SPAN style="color: #ff0000;"&gt;End&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;Try&lt;/SPAN&gt;
	&lt;SPAN style="color: #800000;"&gt;rowNr&lt;/SPAN&gt; = &lt;SPAN style="color: #800000;"&gt;rowNr&lt;/SPAN&gt;+1
	&lt;SPAN style="color: #800000;"&gt;fileName&lt;/SPAN&gt; = &lt;SPAN style="color: #800080;"&gt;GoExcel&lt;/SPAN&gt;.&lt;SPAN style="color: #800080;"&gt;CellValue&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;collumn&lt;/SPAN&gt; &amp;amp; &lt;SPAN style="color: #800000;"&gt;rowNr&lt;/SPAN&gt;)
&lt;SPAN style="color: #ff0000;"&gt;End&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;While&lt;/SPAN&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 09 Dec 2020 22:55:41 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/how-to-perform-save-a-copy-as-pdf-for-a-list-of-inventor/m-p/9928147#M55134</guid>
      <dc:creator>JelteDeJong</dc:creator>
      <dc:date>2020-12-09T22:55:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to perform 'save a copy as' PDF for a list of Inventor drawings from an excel using VBA?</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/how-to-perform-save-a-copy-as-pdf-for-a-list-of-inventor/m-p/9933216#M55135</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/5011186"&gt;@JelteDeJong&lt;/a&gt;&amp;nbsp;Is there a way to open a file if you don't know the path, just the filename?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for all you do, helping us with your iLogic skills!&lt;/P&gt;</description>
      <pubDate>Fri, 11 Dec 2020 17:21:35 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/how-to-perform-save-a-copy-as-pdf-for-a-list-of-inventor/m-p/9933216#M55135</guid>
      <dc:creator>Eide.N</dc:creator>
      <dc:date>2020-12-11T17:21:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to perform 'save a copy as' PDF for a list of Inventor drawings from an excel using VBA?</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/how-to-perform-save-a-copy-as-pdf-for-a-list-of-inventor/m-p/9933318#M55136</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/7421695"&gt;@Eide.N&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Yes. It is possible but will take a longer time to process.&amp;nbsp; Basically the code would have to search within all directories under your current Workspace directory for a file with that name (for each file), before it can open the file, then save (or export) it to a PDF.&amp;nbsp; Hopefully there aren't multiple files with the same file name within those directories, or it may cause problems.&amp;nbsp; Would you need that code in iLogic, VBA, or other?&lt;/P&gt;</description>
      <pubDate>Fri, 11 Dec 2020 18:02:28 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/how-to-perform-save-a-copy-as-pdf-for-a-list-of-inventor/m-p/9933318#M55136</guid>
      <dc:creator>WCrihfield</dc:creator>
      <dc:date>2020-12-11T18:02:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to perform 'save a copy as' PDF for a list of Inventor drawings from an excel using VBA?</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/how-to-perform-save-a-copy-as-pdf-for-a-list-of-inventor/m-p/9933545#M55137</link>
      <description>&lt;P&gt;Here is a VBA macro you can try.&amp;nbsp; It doesn't search through your Workspace directories for the drawing document, so if your list of drawing names doesn't include the full file name (path and file name, with extension) it won't work yet.&amp;nbsp; It just uses the simple SaveAs technique, instead of going through the true export process, so there isn't any options to specify.&lt;/P&gt;&lt;P&gt;Things you may have to edit before running it.&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;The value of oXLFile.&amp;nbsp; Change it to the full file name (with path and extension) of your source Excel file.&lt;/LI&gt;&lt;LI&gt;The value of oSLSheet.&amp;nbsp; Make sure this is the name of the sheet (or tab) in your Excel file, where the names are listed.&lt;/LI&gt;&lt;LI&gt;The value of oCol.&amp;nbsp; Make sure this is the Column in that sheet where the drawing names are listed.&lt;/LI&gt;&lt;LI&gt;The value of o1stRow.&amp;nbsp; Make sure this is set to the first row number where the names start.&lt;/LI&gt;&lt;LI&gt;Make sure you are referencing the Microsoft Excel (version number) Object Library.&lt;UL&gt;&lt;LI&gt;In the VBA Editor, go to Tools tab, References..., scroll list to find this, then check the box next to it, then click OK button.&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;If this process of starting Excel doesn't work for you, there are other ways to do it that may work better for you.&amp;nbsp; I have a list of them if needed.&amp;nbsp; This works for me, though.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Here's the code.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Sub PDF_List_Of_Drawings_From_Excel()
    Dim oXLFile As String
    oXLFile = "C:\Temp\Test.xlsx"
    Dim oXLSheet As String
    oXLSheet = "Sheet1"
    Dim oCol As String
    oCol = "A"
    Dim oRow As Integer
    o1stRow = 1
    
    'Create New instance of the Excel application
    Dim oExcel As Excel.Application
    Set oExcel = New Excel.Application
    oExcel.DisplayAlerts = False
    oExcel.Visible = True
    
    'Open the Workbook (file)
    Dim oWB As Excel.Workbook
    Set oWB = oExcel.Workbooks.Open(oXLFile)
    
    'Get the Worksheet (Sheet or Tab)
    Dim oWS As Excel.WorkSheet
    Set oWS = oWB.Worksheets.Item(oXLSheet)
    
    Dim oDrgName As String
    
    Dim oRow As Integer
    Dim oLastRowUsed As Integer
    oLastRowUsed = oWS.UsedRange.Rows.Count
    
    For oRow = o1stRow To oLastRowUsed
        'Check to see if the cell is empty
        If oWS.Range(oCol &amp;amp; oRow).Value = Nothing Or oWS.Range(oCol &amp;amp; oRow).Value = vbNullString Then
            Next oRow
        Else
            oDrgName = oWS.Range(oCol &amp;amp; oRow).Value
        End If

        'Could search for this file in the Workspace directories here
        'before proceeding, if needed.

        Dim oDDoc As DrawingDocument
        
        On Error GoTo Open_Failed
        Set oDDoc = ThisApplication.Documents.Open(oDrgName)
        Dim oPDFName As String
        oPDFName = IO.Path.ChangeExtension(oDDoc.FullFileName, ".pdf")
        On Error GoTo PDF_Failed
        Call oDDoc.SaveAs(oPDFName, True)
        Call oDDoc.Close
        GoTo NextRow
Open_Failed:
        Call MsgBox("Failed Open:  " &amp;amp; oDrgName, vbOKOnly + vbCritical, " ")
        GoTo NextRow
PDF_Failed:
        Call MsgBox("Failed save PDF:  " &amp;amp; oPDFName, vbOKOnly + vbCritical, " ")
        GoTo NextRow
NextRow:
        oRow = oRow + 1
        oDrgName = oWS.Range(oCol &amp;amp; oRow).Value
    Next oRow
    oWB.Close
    oExcel.Quit
End Sub&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If this solved your problem, or answered your question, please click &lt;SPAN style="background-color: green; color: white;"&gt;&lt;STRONG&gt;ACCEPT SOLUTION&lt;/STRONG&gt;&lt;/SPAN&gt;.&lt;BR /&gt;Or, if this helped you, please click 'LIKE' &lt;SPAN&gt;&lt;span class="lia-unicode-emoji" title=":thumbs_up:"&gt;👍&lt;/span&gt;&lt;/SPAN&gt;.&lt;/P&gt;&lt;P&gt;If you have time, please... Vote For &lt;A href="https://forums.autodesk.com/t5/forums/recentpostspage/post-type/message/interaction-style/idea/user-id/7812054/" target="_blank" rel="noopener"&gt;My IDEAS &lt;SPAN&gt;&lt;span class="lia-unicode-emoji" title=":light_bulb:"&gt;💡&lt;/span&gt;&lt;/SPAN&gt;&lt;/A&gt;and Explore &lt;A href="https://knowledge.autodesk.com/profile/LTSUSR7HXMSAE/articles" target="_blank" rel="noopener"&gt;My CONTRIBUTIONS &lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://help.autodesk.com/view/INVNTOR/2021/ENU/" target="_blank" rel="noopener"&gt;Inventor 2021 Help &lt;/A&gt;| &lt;A href="https://forums.autodesk.com/t5/inventor-forum/bd-p/78/" target="_blank" rel="noopener"&gt;Inventor Forum &lt;/A&gt;| &lt;A href="https://forums.autodesk.com/t5/inventor-customization/bd-p/120/" target="_blank" rel="noopener"&gt;Inventor Customization Forum &lt;/A&gt;| &lt;A href="https://forums.autodesk.com/t5/inventor-ideas/idb-p/v1232/" target="_blank" rel="noopener"&gt;Inventor Ideas Forum &lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 11 Dec 2020 19:49:23 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/how-to-perform-save-a-copy-as-pdf-for-a-list-of-inventor/m-p/9933545#M55137</guid>
      <dc:creator>WCrihfield</dc:creator>
      <dc:date>2020-12-11T19:49:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to perform 'save a copy as' PDF for a list of Inventor drawings from an excel using VBA?</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/how-to-perform-save-a-copy-as-pdf-for-a-list-of-inventor/m-p/9933657#M55138</link>
      <description>&lt;P&gt;As mentioned searching for a file can be very time consuming. But if you want this is how you can do it.&lt;/P&gt;&lt;PRE&gt;&lt;SPAN style="color: #ff0000;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;searchFolder&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;String&lt;/SPAN&gt; = &lt;SPAN style="color: #008080;"&gt;"C:\temp\"&lt;/SPAN&gt; &lt;SPAN style="color: #808080;"&gt;'&amp;lt;- search in this folder (and sub folders)&lt;/SPAN&gt;
&lt;SPAN style="color: #ff0000;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;excelFileName&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;String&lt;/SPAN&gt; = &lt;SPAN style="color: #008080;"&gt;"files.xlsx"&lt;/SPAN&gt; &lt;SPAN style="color: #808080;"&gt;'&amp;lt;- Excel name&lt;/SPAN&gt;
&lt;SPAN style="color: #ff0000;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;excelSheetName&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;String&lt;/SPAN&gt; = &lt;SPAN style="color: #008080;"&gt;"Sheet1"&lt;/SPAN&gt; &lt;SPAN style="color: #808080;"&gt;'&amp;lt;- Excel sheet/tab name&lt;/SPAN&gt;
&lt;SPAN style="color: #ff0000;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;collumn&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;String&lt;/SPAN&gt; = &lt;SPAN style="color: #008080;"&gt;"A"&lt;/SPAN&gt; &lt;SPAN style="color: #808080;"&gt;'&amp;lt;- column with filenames&lt;/SPAN&gt;
&lt;SPAN style="color: #ff0000;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;rowNr&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;Integer&lt;/SPAN&gt; = 1 &lt;SPAN style="color: #808080;"&gt;'&amp;lt;- first row with filenames&lt;/SPAN&gt;

&lt;SPAN style="color: #ff0000;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;startFolder&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;IO&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;DirectoryInfo&lt;/SPAN&gt; = &lt;SPAN style="color: #ff0000;"&gt;New&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;IO&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;DirectoryInfo&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;searchFolder&lt;/SPAN&gt;)
&lt;SPAN style="color: #ff0000;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;xlsFiles&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;IO&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;FileInfo&lt;/SPAN&gt;() = &lt;SPAN style="color: #800000;"&gt;startFolder&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;GetFiles&lt;/SPAN&gt;(&lt;SPAN style="color: #008080;"&gt;"files.xlsx"&lt;/SPAN&gt;, &lt;SPAN style="color: #800000;"&gt;IO&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;SearchOption&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;AllDirectories&lt;/SPAN&gt;)
&lt;SPAN style="color: #ff0000;"&gt;If&lt;/SPAN&gt; (&lt;SPAN style="color: #800000;"&gt;xlsFiles&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Count&lt;/SPAN&gt; &amp;lt;&amp;gt; 1) &lt;SPAN style="color: #ff0000;"&gt;Then&lt;/SPAN&gt;
	&lt;SPAN style="color: #800000;"&gt;MsgBox&lt;/SPAN&gt;(&lt;SPAN style="color: #008080;"&gt;"Could not find Excel file"&lt;/SPAN&gt;)
	&lt;SPAN style="color: #ff0000;"&gt;Return&lt;/SPAN&gt;
&lt;SPAN style="color: #ff0000;"&gt;End&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;If&lt;/SPAN&gt;
&lt;SPAN style="color: #800000;"&gt;excelFileName&lt;/SPAN&gt; = &lt;SPAN style="color: #800000;"&gt;xlsFiles&lt;/SPAN&gt;(0).&lt;SPAN style="color: #800000;"&gt;FullName&lt;/SPAN&gt;

&lt;SPAN style="color: #800080;"&gt;GoExcel&lt;/SPAN&gt;.&lt;SPAN style="color: #800080;"&gt;Open&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;excelFileName&lt;/SPAN&gt;, &lt;SPAN style="color: #800000;"&gt;excelSheetName&lt;/SPAN&gt;)
&lt;SPAN style="color: #ff0000;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;fileName&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;String&lt;/SPAN&gt; = &lt;SPAN style="color: #800080;"&gt;GoExcel&lt;/SPAN&gt;.&lt;SPAN style="color: #800080;"&gt;CellValue&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;collumn&lt;/SPAN&gt; &amp;amp; &lt;SPAN style="color: #800000;"&gt;rowNr&lt;/SPAN&gt;)
&lt;SPAN style="color: #ff0000;"&gt;While&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;String&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;IsNullOrEmpty&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;fileName&lt;/SPAN&gt;) = &lt;SPAN style="color: #ff0000;"&gt;False&lt;/SPAN&gt;
	&lt;SPAN style="color: #ff0000;"&gt;Try&lt;/SPAN&gt;
		&lt;SPAN style="color: #ff0000;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;doc&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;DrawingDocument&lt;/SPAN&gt; = &lt;SPAN style="color: #800080;"&gt;ThisApplication&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Documents&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Open&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;fileName&lt;/SPAN&gt;)
		&lt;SPAN style="color: #ff0000;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;pdfFileName&lt;/SPAN&gt; = &lt;SPAN style="color: #800000;"&gt;IO&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Path&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;ChangeExtension&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;doc&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;FullFileName&lt;/SPAN&gt;, &lt;SPAN style="color: #008080;"&gt;".pdf"&lt;/SPAN&gt;)
		&lt;SPAN style="color: #808080;"&gt;' MsgBox(pdfFileName)&lt;/SPAN&gt;
		&lt;SPAN style="color: #800000;"&gt;doc&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;SaveAs&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;pdfFileName&lt;/SPAN&gt;, &lt;SPAN style="color: #ff0000;"&gt;True&lt;/SPAN&gt;)
		&lt;SPAN style="color: #800000;"&gt;doc&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Close&lt;/SPAN&gt;()
    &lt;SPAN style="color: #ff0000;"&gt;Catch&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;ex&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;Exception&lt;/SPAN&gt;
		&lt;SPAN style="color: #800000;"&gt;MsgBox&lt;/SPAN&gt;(&lt;SPAN style="color: #008080;"&gt;"Trouble in paradise while saving file: "&lt;/SPAN&gt; &amp;amp; &lt;SPAN style="color: #800000;"&gt;fileName&lt;/SPAN&gt;)
    &lt;SPAN style="color: #ff0000;"&gt;End&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;Try&lt;/SPAN&gt;
	&lt;SPAN style="color: #800000;"&gt;rowNr&lt;/SPAN&gt; = &lt;SPAN style="color: #800000;"&gt;rowNr&lt;/SPAN&gt;+1
	&lt;SPAN style="color: #800000;"&gt;fileName&lt;/SPAN&gt; = &lt;SPAN style="color: #800080;"&gt;GoExcel&lt;/SPAN&gt;.&lt;SPAN style="color: #800080;"&gt;CellValue&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;collumn&lt;/SPAN&gt; &amp;amp; &lt;SPAN style="color: #800000;"&gt;rowNr&lt;/SPAN&gt;)
&lt;SPAN style="color: #ff0000;"&gt;End&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;While&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 11 Dec 2020 20:34:52 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/how-to-perform-save-a-copy-as-pdf-for-a-list-of-inventor/m-p/9933657#M55138</guid>
      <dc:creator>JelteDeJong</dc:creator>
      <dc:date>2020-12-11T20:34:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to perform 'save a copy as' PDF for a list of Inventor drawings from an excel using VBA?</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/how-to-perform-save-a-copy-as-pdf-for-a-list-of-inventor/m-p/9938572#M55139</link>
      <description>&lt;P&gt;Thanks guys! What an amazing group of smart people we have here.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 14 Dec 2020 14:17:39 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/how-to-perform-save-a-copy-as-pdf-for-a-list-of-inventor/m-p/9938572#M55139</guid>
      <dc:creator>Eide.N</dc:creator>
      <dc:date>2020-12-14T14:17:39Z</dc:date>
    </item>
  </channel>
</rss>

