Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
Sérgio Lopes
 
Posts: n/a
Default Saving files with a list of values

I would like to know if it is possible to save several files of excel with
especific names from a list.

For exemple:

I have to do every months a save of the exact same file with 200 diferent
names (one for each worker).

So, is it possible to make a list of the names of all these workers a then
say to excel to save a file for each of these names in the list??

If so, please help me!!!
--
Sérgio Lopes
  #2   Report Post  
Posted to microsoft.public.excel.misc
papou
 
Posts: n/a
Default Saving files with a list of values

Hello Sergio
This is possible using VBA.
Here is a sample code to achieve this :
With Worksheets("Sheet1")'***
For i = 1 to .Range("A65536").End(xlup).row '***
Thisworkbook.SaveAs .Cells(i,1) '***
Next i
End With

(***please amend accordingly)
HTH
Cordially
Pascal


  #3   Report Post  
Posted to microsoft.public.excel.misc
Sérgio Lopes
 
Posts: n/a
Default Saving files with a list of values

Honestly VBA is not my hobby.

I thank you a lot but it was not so helpfull because of the ***.

Can you help me a bit further more??

Thanks,
--
Sérgio Lopes


"papou" escreveu:

Hello Sergio
This is possible using VBA.
Here is a sample code to achieve this :
With Worksheets("Sheet1")'***
For i = 1 to .Range("A65536").End(xlup).row '***
Thisworkbook.SaveAs .Cells(i,1) '***
Next i
End With

(***please amend accordingly)
HTH
Cordially
Pascal



  #4   Report Post  
Posted to microsoft.public.excel.misc
Sérgio Lopes
 
Posts: n/a
Default Saving files with a list of values

I would Like to answer to my question. I have already found it.

VBA code:

Private Sub CommandButton1_Click()
Dim s As String
Dim I As Integer
Dim d As Integer


For d = 1 To 5
Sheets("Sheet1").Select
s = Range("A" & d).Text




txt1.Caption = s
ActiveWorkbook.SaveAs Filename:="\\tbraga\Areas$\a2401799\" & s, _
FileFormat:=xlNormal, Password:="", WriteResPassword:="", _
ReadOnlyRecommended:=False, CreateBackup:=False
Next

End Sub

If I can help anyone, please tell me.

Thanks,

--
Sérgio Lopes


"Sérgio Lopes" escreveu:

I would like to know if it is possible to save several files of excel with
especific names from a list.

For exemple:

I have to do every months a save of the exact same file with 200 diferent
names (one for each worker).

So, is it possible to make a list of the names of all these workers a then
say to excel to save a file for each of these names in the list??

If so, please help me!!!
--
Sérgio Lopes

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
How do I assign a set of values to a selection from a drop list? Mike Bach New Users to Excel 1 March 7th 06 08:10 PM
create a list of single values from multiple values Jordan Excel Worksheet Functions 3 November 3rd 05 11:25 PM
List of different values in data area balcovja Excel Discussion (Misc queries) 1 August 15th 05 09:04 AM
Select values from list Bepi Excel Discussion (Misc queries) 2 June 21st 05 11:07 AM
Assign values to names in a drop-down list? Barry L Excel Discussion (Misc queries) 3 March 8th 05 04:21 PM


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