Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Move File When The ...

MOVE FILE WHEN THE WBook it is opened.

i have this file in:

E:\EPF\PORTAF_132.EPF

my prob is to move this in the another dir named E:\EPFBK\ when th
WBook it is opened and rename the file in PORTAF_132_(date).EPF

Final result:

E:\EPFBK\PORTAF_132_18022004.EPF


after initial dir E:\EPF\ is blank..

--
Message posted from http://www.ExcelForum.com

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 599
Default Move File When The ...

Sal

Name "C:\Dick\Book2.xls" As "C:\Dick\Tester\Book2" & Format(Now, "ddmmyyy")
& ".xls"

The Name statement renames the file and puts into a different directory if
neccessary. Use the Format function on a date to get the date format you
want in the file name.

--
Dick Kusleika
MVP - Excel
www.dicks-clicks.com
Post all replies to the newsgroup.

"sal21 " wrote in message
...
MOVE FILE WHEN THE WBook it is opened.

i have this file in:

E:\EPF\PORTAF_132.EPF

my prob is to move this in the another dir named E:\EPFBK\ when the
WBook it is opened and rename the file in PORTAF_132_(date).EPF

Final result:

E:\EPFBK\PORTAF_132_18022004.EPF


after initial dir E:\EPF\ is blank...


---
Message posted from http://www.ExcelForum.com/



Reply
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
move data to another file reza Excel Worksheet Functions 0 October 15th 09 04:47 PM
Macro to move file Dave Excel Discussion (Misc queries) 5 September 26th 07 01:54 PM
Move Worksheet to other File Kathleen Excel Worksheet Functions 1 September 14th 07 10:02 PM
Move File THE_RAMONES Excel Discussion (Misc queries) 3 May 25th 06 09:31 PM
Move file to different folder Don Guillett[_4_] Excel Programming 4 August 29th 03 07:35 PM


All times are GMT +1. The time now is 06:07 PM.

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

About Us

"It's about Microsoft Excel"