+ Reply to Thread
Results 1 to 3 of 3

DOS command in VBA

  1. #1
    Registered User
    Join Date
    02-28-2007
    Location
    MOntreal
    MS-Off Ver
    Office 2010
    Posts
    12

    DOS command in VBA

    I would like to rename a file from a module witten in VBA in Excell. Any idea what the code looks like? I tried Call Shell() without success.


    file to rename: \\Hercules\NFTC OPS\Briefing Shells\ops brief\Ops_Notes.htm
    new name: \\Hercules\NFTC OPS\Briefing Shells\ops brief\Ops_Notes.txt

    ps I work under Windows XP.

    thanks

    Acheo

  2. #2
    Forum Expert
    Join Date
    11-23-2005
    Location
    Rome
    MS-Off Ver
    Ms Office 2016
    Posts
    1,628
    Try with this code:

    Please Login or Register  to view this content.
    Regards,
    Antonio

  3. #3
    Registered User
    Join Date
    02-28-2007
    Location
    MOntreal
    MS-Off Ver
    Office 2010
    Posts
    12
    super!!!! It works.

    Thanks!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1