PC Review


Reply
Thread Tools Rate Thread

Changing Path of .JPG file?

 
 
ironhydroxide
Guest
Posts: n/a
 
      27th Jul 2009
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 With Quote
 
 
 
 
Patrick Molloy
Guest
Posts: n/a
 
      27th Jul 2009
you can use the FileCopy with a delete (Kill statement)

"ironhydroxide" <(E-Mail Removed)> wrote in message
news:02E2CDC5-19DE-49EB-A6EB-(E-Mail Removed)...
> 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 With Quote
 
Dave Peterson
Guest
Posts: n/a
 
      27th Jul 2009
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
 
Reply With Quote
 
ironhydroxide
Guest
Posts: n/a
 
      27th Jul 2009
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" <(E-Mail Removed)> wrote in message
> news:02E2CDC5-19DE-49EB-A6EB-(E-Mail Removed)...
> > 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 With Quote
 
Don Guillett
Guest
Posts: n/a
 
      27th Jul 2009

Look in the vba help index for NAME

--
Don Guillett
Microsoft MVP Excel
SalesAid Software
(E-Mail Removed)
"ironhydroxide" <(E-Mail Removed)> wrote in message
news:02E2CDC5-19DE-49EB-A6EB-(E-Mail Removed)...
>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 With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Changing file path J.C Windows XP Basics 10 25th Feb 2008 02:49 AM
changing file path from d:\ to c:\ Jo Ann Microsoft Windows 2000 File System 2 5th Jul 2004 06:22 AM
Changing path of PST file Allaire Smith Microsoft Outlook Installation 1 14th Nov 2003 09:15 PM
User changing file path Joan Microsoft Access Form Coding 0 14th Jul 2003 10:27 PM
changing path to AVI file CR Optiker Microsoft Powerpoint 2 7th Jul 2003 11:26 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 03:07 AM.