<?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: Get the name of the file open in VBA Forum</title>
    <link>https://forums.autodesk.com/t5/vba-forum/get-the-name-of-the-file-open/m-p/333766#M88552</link>
    <description>Where is this .dvb file you're referring to? I'm also trying to search the hard drive for duplicate files, and have had some trouble.</description>
    <pubDate>Fri, 11 Jan 2008 18:07:41 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2008-01-11T18:07:41Z</dc:date>
    <item>
      <title>Get the name of the file open</title>
      <link>https://forums.autodesk.com/t5/vba-forum/get-the-name-of-the-file-open/m-p/333763#M88549</link>
      <description>I need to know how to get the name of the file that is open and open the&lt;BR /&gt;
same drawing on a different drive.  The other problem is the paths are not&lt;BR /&gt;
same.  So how can I do this with VBA</description>
      <pubDate>Thu, 21 Dec 2000 10:05:35 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/get-the-name-of-the-file-open/m-p/333763#M88549</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2000-12-21T10:05:35Z</dc:date>
    </item>
    <item>
      <title>Re: Get the name of the file open</title>
      <link>https://forums.autodesk.com/t5/vba-forum/get-the-name-of-the-file-open/m-p/333764#M88550</link>
      <description>Hi TJ,&lt;BR /&gt;
&lt;BR /&gt;
There's a .dvb file for you in CF "Duplicate File for TJ". Virtually all of&lt;BR /&gt;
the code in the module was donated by John Wilde in this NG a few months&lt;BR /&gt;
ago. I stuck a little public sub in front of it.  As it sits it will build&lt;BR /&gt;
an array of all dwg files starting with D:\ (sStartPath = "D:\") and include&lt;BR /&gt;
all dwg files in every directory thereunder. Then it will search the array&lt;BR /&gt;
for a drawing named the same as the active drawing. You should be able to&lt;BR /&gt;
change the sStartPath = "D:\" to wherever you want to start looking. Hope&lt;BR /&gt;
that's what your looking for.&lt;BR /&gt;
&lt;BR /&gt;
Gary</description>
      <pubDate>Thu, 21 Dec 2000 12:27:37 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/get-the-name-of-the-file-open/m-p/333764#M88550</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2000-12-21T12:27:37Z</dc:date>
    </item>
    <item>
      <title>Re: Get the name of the file open</title>
      <link>https://forums.autodesk.com/t5/vba-forum/get-the-name-of-the-file-open/m-p/333765#M88551</link>
      <description>TJ:&lt;BR /&gt;
&lt;BR /&gt;
dim dwgName as string&lt;BR /&gt;
dim newPath as string&lt;BR /&gt;
newPath = "c:\xx\"&lt;BR /&gt;
dwgName = Thisdrawing.Name&lt;BR /&gt;
ThisDrawing.Application.Documents.Open(newPath &amp;amp; dwgName)&lt;BR /&gt;
&lt;BR /&gt;
Gaston Nunez&lt;BR /&gt;
&lt;BR /&gt;
TJ Robinson wrote:&lt;BR /&gt;
&lt;BR /&gt;
&amp;gt; I need to know how to get the name of the file that is open and open the&lt;BR /&gt;
&amp;gt; same drawing on a different drive.  The other problem is the paths are not&lt;BR /&gt;
&amp;gt; same.  So how can I do this with VBA&lt;BR /&gt;
&amp;gt;</description>
      <pubDate>Thu, 21 Dec 2000 12:44:34 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/get-the-name-of-the-file-open/m-p/333765#M88551</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2000-12-21T12:44:34Z</dc:date>
    </item>
    <item>
      <title>Re: Get the name of the file open</title>
      <link>https://forums.autodesk.com/t5/vba-forum/get-the-name-of-the-file-open/m-p/333766#M88552</link>
      <description>Where is this .dvb file you're referring to? I'm also trying to search the hard drive for duplicate files, and have had some trouble.</description>
      <pubDate>Fri, 11 Jan 2008 18:07:41 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/get-the-name-of-the-file-open/m-p/333766#M88552</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-01-11T18:07:41Z</dc:date>
    </item>
  </channel>
</rss>

