Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. Visual Basic
  4. How can I copy an existed Excel file to a new Excel file (different name)?

How can I copy an existed Excel file to a new Excel file (different name)?

Scheduled Pinned Locked Moved Visual Basic
questiontutorial
4 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    ATC
    wrote on last edited by
    #1

    Can someone show me how to copy an existed Excel file (ie: c:\temp\oldFile.xls) to a new Excel file (ie: c:\temp\newFile.xls)? Thank in-advanced :doh:

    P 1 Reply Last reply
    0
    • A ATC

      Can someone show me how to copy an existed Excel file (ie: c:\temp\oldFile.xls) to a new Excel file (ie: c:\temp\newFile.xls)? Thank in-advanced :doh:

      P Offline
      P Offline
      parth p
      wrote on last edited by
      #2

      My.Computer.FileSystem.CopyFile("D:\filename.xls", "E:\filename.xls") :)

      - Stop thinking in terms of limitations and start thinking in terms of possibilities -

      A 1 Reply Last reply
      0
      • P parth p

        My.Computer.FileSystem.CopyFile("D:\filename.xls", "E:\filename.xls") :)

        - Stop thinking in terms of limitations and start thinking in terms of possibilities -

        A Offline
        A Offline
        ATC
        wrote on last edited by
        #3

        It works Many thanks :-D

        P 1 Reply Last reply
        0
        • A ATC

          It works Many thanks :-D

          P Offline
          P Offline
          parth p
          wrote on last edited by
          #4

          Search about Code Snippet and learn about it. It will help you a lot doing OS tasks.

          - Stop thinking in terms of limitations and start thinking in terms of possibilities -

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups