Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 51
Default Changing Path of .JPG file?

I was wondering if it was possible to change the path of a .JPG file using an
excel Macro.
I have a database of people, and when they leave, I also have a folder with
everyones .JPG Picture (which i use to make a printoff of the people here and
their pictures) I was wondering if one could Program in a SubFunction to,
when the leave date has passed, move that certain .JPG file to annother
Directory/Path in that same drive.

Thank you

Ironhydroxide
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,049
Default Changing Path of .JPG file?

you can use the FileCopy with a delete (Kill statement)

"ironhydroxide" wrote in message
...
I was wondering if it was possible to change the path of a .JPG file using
an
excel Macro.
I have a database of people, and when they leave, I also have a folder
with
everyones .JPG Picture (which i use to make a printoff of the people here
and
their pictures) I was wondering if one could Program in a SubFunction to,
when the leave date has passed, move that certain .JPG file to annother
Directory/Path in that same drive.

Thank you

Ironhydroxide


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default Changing Path of .JPG file?

Personally, I wouldn't use excel for this kind of thing.

I'd just open Windows explorer and drag the .jpg file from one folder to another
(or Cut, then paste).

But if you want to use an excel macro, search VBA's help for "Name statement".

There's an example there, too.

ironhydroxide wrote:

I was wondering if it was possible to change the path of a .JPG file using an
excel Macro.
I have a database of people, and when they leave, I also have a folder with
everyones .JPG Picture (which i use to make a printoff of the people here and
their pictures) I was wondering if one could Program in a SubFunction to,
when the leave date has passed, move that certain .JPG file to annother
Directory/Path in that same drive.

Thank you

Ironhydroxide


--

Dave Peterson
  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 51
Default Changing Path of .JPG file?

Searching could have probably helped me (in the Help section)

Thanks for covering for my stupidity

"Patrick Molloy" wrote:

you can use the FileCopy with a delete (Kill statement)

"ironhydroxide" wrote in message
...
I was wondering if it was possible to change the path of a .JPG file using
an
excel Macro.
I have a database of people, and when they leave, I also have a folder
with
everyones .JPG Picture (which i use to make a printoff of the people here
and
their pictures) I was wondering if one could Program in a SubFunction to,
when the leave date has passed, move that certain .JPG file to annother
Directory/Path in that same drive.

Thank you

Ironhydroxide



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
changing the path behind a button derksj Excel Discussion (Misc queries) 1 September 11th 08 01:58 PM
Changing path for import file Greg Excel Programming 4 July 20th 07 04:20 PM
Formula too long - new file path is shorter than old file path - Excel 2003 Greg J Excel Worksheet Functions 1 November 22nd 06 05:16 PM
Changing Query path Robin G Excel Programming 0 August 9th 06 07:35 PM
Changing the Path In a Usage Log Red[_3_] Excel Programming 12 November 16th 04 03:57 PM


All times are GMT +1. The time now is 07:59 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"