<?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 Re: in VBA Forum</title>
    <link>https://forums.autodesk.com/t5/vba-forum/common-dialog-control/m-p/344314#M97956</link>
    <description>D.M.&lt;BR /&gt;
&lt;BR /&gt;
The command dialog control will raise an error&lt;BR /&gt;
(Err.num 32755) when the operation is cancelled&lt;BR /&gt;
(if the CancelError property is set to True)&lt;BR /&gt;
&lt;BR /&gt;
Denis</description>
    <pubDate>Fri, 25 Feb 2000 00:02:01 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2000-02-25T00:02:01Z</dc:date>
    <item>
      <title>Common Dialog Control?</title>
      <link>https://forums.autodesk.com/t5/vba-forum/common-dialog-control/m-p/344312#M97954</link>
      <description>&lt;DIV&gt;&lt;FONT face="Tahoma" size="2"&gt;Would anyone possibly have a snippet of code &lt;BR /&gt;
showing how to use the Microsoft Common Dialog Control to add a selected list of &lt;BR /&gt;
drawing filenames to an array or to a grid.... I would like to select more than &lt;BR /&gt;
one file at a time from a folder and add them to a MSFlexgrid in order to batch &lt;BR /&gt;
process them...&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&lt;FONT face="Tahoma" size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&lt;FONT face="Tahoma" size="2"&gt;Thanks in advance...&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&lt;FONT face="Tahoma" size="2"&gt;&lt;BR /&gt;-- &lt;BR /&gt;Rodney D. Lester&lt;BR /&gt;Systems &lt;BR /&gt;
Manager&lt;BR /&gt;GMS, Inc.&lt;BR /&gt;&lt;/FONT&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 08 Dec 1999 17:42:57 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/common-dialog-control/m-p/344312#M97954</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>1999-12-08T17:42:57Z</dc:date>
    </item>
    <item>
      <title>Re: Common Dialog Control?</title>
      <link>https://forums.autodesk.com/t5/vba-forum/common-dialog-control/m-p/344313#M97955</link>
      <description>Any Ideas why this doesn't work?&lt;BR /&gt;
&lt;BR /&gt;
Public Sub g_sb_ReadData()&lt;BR /&gt;
&lt;BR /&gt;
    Dim lo_DlgCtrl As CommonDialog&lt;BR /&gt;
    Dim ls_FileName As String&lt;BR /&gt;
&lt;BR /&gt;
    Set lo_DlgCtrl = New CommonDialog&lt;BR /&gt;
&lt;BR /&gt;
    lo_DlgCtrl.Filter = "Text Files (*.txt)|*.txt"&lt;BR /&gt;
&lt;BR /&gt;
    lo_DlgCtrl.ShowOpen&lt;BR /&gt;
&lt;BR /&gt;
    ls_FileName = lo_DlgCtrl.FileName&lt;BR /&gt;
&lt;BR /&gt;
    MsgBox ls_FileName&lt;BR /&gt;
&lt;BR /&gt;
    Set lo_DlgCtrl = Nothing&lt;BR /&gt;
&lt;BR /&gt;
End Sub&lt;BR /&gt;
&lt;BR /&gt;
The error occurs right after the user selects the file and closes the dialog&lt;BR /&gt;
box .&lt;BR /&gt;
&lt;BR /&gt;
--&lt;BR /&gt;
Best Regards,&lt;BR /&gt;
&lt;BR /&gt;
D. M. Levesque</description>
      <pubDate>Thu, 24 Feb 2000 22:00:34 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/common-dialog-control/m-p/344313#M97955</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2000-02-24T22:00:34Z</dc:date>
    </item>
    <item>
      <title>Re:</title>
      <link>https://forums.autodesk.com/t5/vba-forum/common-dialog-control/m-p/344314#M97956</link>
      <description>D.M.&lt;BR /&gt;
&lt;BR /&gt;
The command dialog control will raise an error&lt;BR /&gt;
(Err.num 32755) when the operation is cancelled&lt;BR /&gt;
(if the CancelError property is set to True)&lt;BR /&gt;
&lt;BR /&gt;
Denis</description>
      <pubDate>Fri, 25 Feb 2000 00:02:01 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/common-dialog-control/m-p/344314#M97956</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2000-02-25T00:02:01Z</dc:date>
    </item>
    <item>
      <title>Re:</title>
      <link>https://forums.autodesk.com/t5/vba-forum/common-dialog-control/m-p/344315#M97957</link>
      <description>What environment are you using this in? Do you have any more details?&lt;BR /&gt;
&lt;BR /&gt;
Joe&lt;BR /&gt;
&lt;BR /&gt;
D. M. Levesque &lt;DALELEVESQUE&gt; wrote in message&lt;BR /&gt;
news:8949tv$otc3@adesknews2.autodesk.com...&lt;BR /&gt;
&amp;gt; Any Ideas why this doesn't work?&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; Public Sub g_sb_ReadData()&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;     Dim lo_DlgCtrl As CommonDialog&lt;BR /&gt;
&amp;gt;     Dim ls_FileName As String&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;     Set lo_DlgCtrl = New CommonDialog&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;     lo_DlgCtrl.Filter = "Text Files (*.txt)|*.txt"&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;     lo_DlgCtrl.ShowOpen&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;     ls_FileName = lo_DlgCtrl.FileName&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;     MsgBox ls_FileName&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;     Set lo_DlgCtrl = Nothing&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; End Sub&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; The error occurs right after the user selects the file and closes the&lt;BR /&gt;
dialog&lt;BR /&gt;
&amp;gt; box .&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; --&lt;BR /&gt;
&amp;gt; Best Regards,&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; D. M. Levesque&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;&lt;/DALELEVESQUE&gt;</description>
      <pubDate>Fri, 25 Feb 2000 18:26:09 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/common-dialog-control/m-p/344315#M97957</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2000-02-25T18:26:09Z</dc:date>
    </item>
    <item>
      <title>Re: Common Dialog Control?</title>
      <link>https://forums.autodesk.com/t5/vba-forum/common-dialog-control/m-p/344316#M97958</link>
      <description>Hello,&lt;BR /&gt;
&lt;BR /&gt;
I have a program that uses this function. It works fine on my computer&lt;BR /&gt;
but gives an error on everyone elses. The error is "Run-time error 429:&lt;BR /&gt;
activex component can't create object". I've highlighted where the&lt;BR /&gt;
program stops  when I debug&lt;BR /&gt;
&lt;BR /&gt;
Private Function GetPbzFile() As TextStream&lt;BR /&gt;
'dimension locals&lt;BR /&gt;
Dim dlgSaveFile As New CommonDialog&lt;BR /&gt;
Dim strPbzFileName As String&lt;BR /&gt;
Dim fsoPbzFile As New FileSystemObject&lt;BR /&gt;
Dim txsPbzText As TextStream&lt;BR /&gt;
&lt;BR /&gt;
'set the common save file dialog properties&lt;BR /&gt;
****************dlgSaveFile.DialogTitle = "Export PBZ&lt;BR /&gt;
File"*******************stops here&lt;BR /&gt;
dlgSaveFile.DefaultExt = ".pbz"&lt;BR /&gt;
dlgSaveFile.Filter = "Handtman (Pbz) File|*.Pbz"&lt;BR /&gt;
&lt;BR /&gt;
'open the common save file dialog &amp;amp; display the file name&lt;BR /&gt;
'in the textbox (txtFileName)&lt;BR /&gt;
dlgSaveFile.Flags = 2&lt;BR /&gt;
dlgSaveFile.ShowSave&lt;BR /&gt;
strPbzFileName = dlgSaveFile.FileName&lt;BR /&gt;
&lt;BR /&gt;
If strPbzFileName &amp;lt;&amp;gt; "" Then&lt;BR /&gt;
    'First we need to open the pbz file for writing&lt;BR /&gt;
    Set txsPbzText = fsoPbzFile.CreateTextFile(strPbzFileName, True,&lt;BR /&gt;
False)&lt;BR /&gt;
Else&lt;BR /&gt;
    Set txsPbzText = Nothing&lt;BR /&gt;
End If&lt;BR /&gt;
&lt;BR /&gt;
Set GetPbzFile = txsPbzText&lt;BR /&gt;
&lt;BR /&gt;
End Function</description>
      <pubDate>Thu, 28 Feb 2002 08:03:28 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/common-dialog-control/m-p/344316#M97958</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2002-02-28T08:03:28Z</dc:date>
    </item>
    <item>
      <title>Re: Common Dialog Control?</title>
      <link>https://forums.autodesk.com/t5/vba-forum/common-dialog-control/m-p/344317#M97959</link>
      <description>Hello,&lt;BR /&gt;
&lt;BR /&gt;
I have a program that uses this function. It works fine on my computer&lt;BR /&gt;
but gives an error on everyone elses. The error is "Run-time error 429:&lt;BR /&gt;
activex component can't create object". I've highlighted where the&lt;BR /&gt;
program stops  when I debug&lt;BR /&gt;
&lt;BR /&gt;
Private Function GetPbzFile() As TextStream&lt;BR /&gt;
'dimension locals&lt;BR /&gt;
Dim dlgSaveFile As New CommonDialog&lt;BR /&gt;
Dim strPbzFileName As String&lt;BR /&gt;
Dim fsoPbzFile As New FileSystemObject&lt;BR /&gt;
Dim txsPbzText As TextStream&lt;BR /&gt;
&lt;BR /&gt;
'set the common save file dialog properties&lt;BR /&gt;
****************dlgSaveFile.DialogTitle = "Export PBZ&lt;BR /&gt;
File"*******************stops here&lt;BR /&gt;
dlgSaveFile.DefaultExt = ".pbz"&lt;BR /&gt;
dlgSaveFile.Filter = "Handtman (Pbz) File|*.Pbz"&lt;BR /&gt;
&lt;BR /&gt;
'open the common save file dialog &amp;amp; display the file name&lt;BR /&gt;
'in the textbox (txtFileName)&lt;BR /&gt;
dlgSaveFile.Flags = 2&lt;BR /&gt;
dlgSaveFile.ShowSave&lt;BR /&gt;
strPbzFileName = dlgSaveFile.FileName&lt;BR /&gt;
&lt;BR /&gt;
If strPbzFileName &amp;lt;&amp;gt; "" Then&lt;BR /&gt;
    'First we need to open the pbz file for writing&lt;BR /&gt;
    Set txsPbzText = fsoPbzFile.CreateTextFile(strPbzFileName, True,&lt;BR /&gt;
False)&lt;BR /&gt;
Else&lt;BR /&gt;
    Set txsPbzText = Nothing&lt;BR /&gt;
End If&lt;BR /&gt;
&lt;BR /&gt;
Set GetPbzFile = txsPbzText&lt;BR /&gt;
&lt;BR /&gt;
End Function</description>
      <pubDate>Thu, 28 Feb 2002 08:04:51 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/common-dialog-control/m-p/344317#M97959</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2002-02-28T08:04:51Z</dc:date>
    </item>
  </channel>
</rss>

