LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 18
Default Update workbooks in folder, new name and save in new folder

On Jun 18, 8:26*pm, Joel wrote:
What was wrong with the code on Friday?

see posting:http://www.microsoft.com/office/comm....mspx?author=b...



" wrote:
I posted a similiar problem with mixed success.
I am trying to write vba code to update all workbooks in a folder with
a new month & year and give them a new name and save them in a new
folder. *I need it to:
1. *Open all workbooks in a folder (c:/Month) *(there are 30 with the
file names of name1, name2, name3 etc). *There are 32 sheets in each
folder. *On sheet 1, cell S1 is the month and cell T1 is the year.
2. Unprotect sheet 1 on every workbook to allow the month and year to
change. *The password is "top"
3. Have an input box that prompts for new month (ie. mmm) once
4. Have an input box that prompts for new year (ie. yy) once
5. The contents of these input boxes need to be entered once only and
apply to every workbook in the folder.
6. Reprotect sheet 1 in all workbooks with the password "top".
7. Input box that asks for name of new folder. *Create a new folder
off c drive (eg. *c:/new)
8. Save all files in new folder as name1MonYr, name2MonYr, name3MonYr
etc to name30MonYr.
The original workbooks should remain unchanged in the folder Month.
Thank you- Hide quoted text -


- Show quoted text -


Hi Joel,
Re code on Friday, the main problem is that I need to enter the month
and year for each workbook and it does not save each one. it only
saves one file as MonYr. I will study vba code more and see if I can
figure it out and modify it as my needs change. Thanks
Bob
 
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
Save file in a new folder, but create folder only if folder doesn't already exist? nbaj2k[_40_] Excel Programming 6 August 11th 06 08:41 PM
Need code to save file to new folder, erase from old folder Ron M. Excel Discussion (Misc queries) 1 February 24th 06 06:02 PM
Update WorkBooks in Folder Tom Ogilvy Excel Programming 4 August 26th 04 05:43 AM
Update WorkBooks in Folder Ron de Bruin Excel Programming 1 August 25th 04 06:20 PM
Update WorkBooks in Folder JavyD Excel Programming 1 August 25th 04 05:49 PM


All times are GMT +1. The time now is 01:13 PM.

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"