PS 2007 batch rename or batch delete via VBA macro?

A

anovak

Is it possible to use VBA to run through a list of projects for batch
rename or delete?

Thanks
Andy Novak
UNT
 
J

Jack Dahlgren

Certainly.
You can write code to get a list of projects on the server, but the easier
way if you are just doing this once in a while is to get a list of the
projects from Project Center (save to Excel) then use VBA to open the list
and read through it line by line. You could have a column for the new name
if you wanted.

Don't forget to check if the file is open read-only - this happens if
someone has the file checked out. I add a column on the excel file to
indicate whether the file was processed or not so I can go back later.

Also set displayalerts = False or you get all sorts of popup messages and
can't run it unattended.

-Jack Dahlgren
 
A

andy.novak

Certainly.
You can write code to get a list of projects on the server, but the easier
way if you are just doing this once in a while is to get a list of the
projects from Project Center (save to Excel) then use VBA to open the list
and read through it line by line. You could have a  column for the new name
if you wanted.

Don't forget to check if the file is open read-only - this happens if
someone has the file checked out. I add a column on the excel file to
indicate whether the file was processed or not so I can go back later.

Also set displayalerts = False or you get all sorts of popup messages and
can't run it unattended.

-Jack Dahlgren

Could you share what the VBA commands are for the rename and delete?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top