Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 147
Default Start a Macro when a file exists

Hi All

I was wondering if this is possible if you could have a file sitting doing
nothing but when a file is added to a certain folder to startup a macro?

Jason
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,986
Default Start a Macro when a file exists

Don't know it that event is covered at this site, but Chip Pearson covers a
lot of events that might give you some insight.

http://www.cpearson.com/excel/Events.aspx

"Jason Zischke" wrote:

Hi All

I was wondering if this is possible if you could have a file sitting doing
nothing but when a file is added to a certain folder to startup a macro?

Jason

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 147
Default Start a Macro when a file exists

Hi JLGWhiz

Thanks for your responce, however I'm still a bit of a novice when it comes
to class modules. Any help would greatly be appreciated.

Jason

"JLGWhiz" wrote:

Don't know it that event is covered at this site, but Chip Pearson covers a
lot of events that might give you some insight.

http://www.cpearson.com/excel/Events.aspx

"Jason Zischke" wrote:

Hi All

I was wondering if this is possible if you could have a file sitting doing
nothing but when a file is added to a certain folder to startup a macro?

Jason

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,588
Default Start a Macro when a file exists

Look at

Application.onTime to schedule a repeating macro
Dir() to check the contents of a folder

Tim.


"Jason Zischke" wrote in message
...
Hi All

I was wondering if this is possible if you could have a file sitting doing
nothing but when a file is added to a certain folder to startup a macro?

Jason



  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 147
Default Start a Macro when a file exists

Hi Tim

Thanks for your responce, however that won't work to well for me, because
the files that go to that folder can be irregular which means you may have to
wait a bit more for some and not others.

Jason

"Tim Williams" wrote:

Look at

Application.onTime to schedule a repeating macro
Dir() to check the contents of a folder

Tim.


"Jason Zischke" wrote in message
...
Hi All

I was wondering if this is possible if you could have a file sitting doing
nothing but when a file is added to a certain folder to startup a macro?

Jason






  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,588
Default Start a Macro when a file exists

So if the workbbok was scanning the folder for new files every minute that
wouldn't work ?

It is possible to put a "watch" on a folder but that's a bit more complex:
http://vbnet.mvps.org/index.html?cod...chedfolder.htm

Tim


"Jason Zischke" wrote in message
...
Hi Tim

Thanks for your responce, however that won't work to well for me, because
the files that go to that folder can be irregular which means you may have
to
wait a bit more for some and not others.

Jason

"Tim Williams" wrote:

Look at

Application.onTime to schedule a repeating macro
Dir() to check the contents of a folder

Tim.


"Jason Zischke" wrote in message
...
Hi All

I was wondering if this is possible if you could have a file sitting
doing
nothing but when a file is added to a certain folder to startup a
macro?

Jason






  #7   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 147
Default Start a Macro when a file exists

Hi Tim

Thanks for your responce, I got the watch on a folder ot work for me and it
seems to be doing well, Thanks

Jason

"Tim Williams" wrote:

So if the workbbok was scanning the folder for new files every minute that
wouldn't work ?

It is possible to put a "watch" on a folder but that's a bit more complex:
http://vbnet.mvps.org/index.html?cod...chedfolder.htm

Tim


"Jason Zischke" wrote in message
...
Hi Tim

Thanks for your responce, however that won't work to well for me, because
the files that go to that folder can be irregular which means you may have
to
wait a bit more for some and not others.

Jason

"Tim Williams" wrote:

Look at

Application.onTime to schedule a repeating macro
Dir() to check the contents of a folder

Tim.


"Jason Zischke" wrote in message
...
Hi All

I was wondering if this is possible if you could have a file sitting
doing
nothing but when a file is added to a certain folder to startup a
macro?

Jason






  #8   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default Start a Macro when a file exists

Not doing nothing...but how about continuously monitoring a folder?

You may want to look at Randy Birch's site:
http://vbnet.mvps.org/index.html?cod...chedfolder.htm



Jason Zischke wrote:

Hi All

I was wondering if this is possible if you could have a file sitting doing
nothing but when a file is added to a certain folder to startup a macro?

Jason


--

Dave Peterson
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
Macro in Excel using an Array to Delete File in Directory if it Exists Matt[_40_] Excel Programming 3 February 2nd 07 03:16 AM
MACRO VBA TO SAVE EVEN IF FILE EXISTS coconutt Excel Programming 1 February 23rd 06 06:37 PM
How to make macro start when file is opened gifer Excel Programming 2 March 8th 05 07:25 PM
start Macro when file is open Martin French Excel Programming 0 February 18th 05 10:17 PM
start a macro when file opens?? Ftca Excel Programming 2 October 30th 03 12:47 PM


All times are GMT +1. The time now is 08:29 AM.

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"