Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7
Default Increment File Name by 1

I have 52 files, one for each week of the year, and one blank master. When
a change is required the master is updated then the files are over written
for the weeks to come, this is done manually one file at a time. The file
names are
RC1 WK1
RC1 WK2
etc
Is it possible to save the blank master as RC1 WK? to RC1 WK52, ? being the
first file to start from, over writing the previous files?

Thanks Blue


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Increment File Name by 1

doing from memory, so syntax might not be perfect but...

Private CommandButton1_Click (

dim
dim pathofsavefile as strin
pathofsavefile = "C:\temp\RC1 WK

x = 1

application.displayalerts = fals
Do Until x 5
ActiveWorkbook.SaveAs Filename:=pathofsavefile &
x = x +
Loo
Application.DisplayAlerts = Tru

End Su

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Increment File Name by 1

doing from memory, so syntax might not be perfect but...

Private CommandButton1_Click (

dim
dim pathofsavefile as strin
pathofsavefile = "C:\temp\RC1 WK

x = 1

application.displayalerts = fals
Do Until x 5
ActiveWorkbook.SaveAs Filename:=pathofsavefile &
x = x +
Loo
Application.DisplayAlerts = Tru

End Su

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Increment File Name by 1


A bit late but thanks for the info

blue


--
Soltisolti
------------------------------------------------------------------------
Soltisolti's Profile: http://www.excelforum.com/member.php...o&userid=15118
View this thread: http://www.excelforum.com/showthread...hreadid=349182

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
Increment by 18 John Excel Worksheet Functions 1 October 8th 09 02:55 AM
Increment Maria Excel Worksheet Functions 4 November 9th 07 12:10 AM
increment a value by 1 Workshops New Users to Excel 3 March 4th 06 11:06 PM
need to increment value Tom Excel Discussion (Misc queries) 5 June 24th 05 12:54 PM
Help with increment problem please Peter[_28_] Excel Programming 1 November 10th 04 08:11 PM


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