LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 77
Default Copy files-what is wrong with this?

Hi

Use a msgbox to see if your paths are correct before you copy it, something
like this. When you get it right, rem out the message box and remove the rem
from the file copy command.

Dim fPath As String, lPath As String

fPath =
"C:\tfmafs01\corporatesecure$\ProcurementReporting \ExportReportFolder\Working\"
lPath =
"C:\tfmafs01\corporatesecure$\ProcurementReporting \ExportReportFolder\Working\Pre_Formatted_Backup"


MsgBox fPath & "*.*" & "," & lPath


'FileCopy fPath & "*.*", lPath

HTH

Ken


 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
excel files take two minutes to open. What's wrong. Eileen Excel Discussion (Misc queries) 0 February 15th 09 11:12 PM
What's wrong with my Help files? EmBee Setting up and Configuration of Excel 0 March 29th 06 01:15 PM
bmp files in Excel Hyperlinks open with wrong program Dave B. Excel Discussion (Misc queries) 1 May 31st 05 05:08 PM
Hyperlinks opening wrong image files CR Optiker Links and Linking in Excel 0 May 9th 05 10:21 PM
Help! What's wrong with this simple copy and paste Richard James[_3_] Excel Programming 4 November 23rd 03 12:57 AM


All times are GMT +1. The time now is 08:13 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"