Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.links
external usenet poster
 
Posts: 2
Default Application that separates Excel rows in new worksheets


Hello,

I was wondering if I can do the below with links in excel:

I want to create an application that will read an excel file that contains
the names of students in a course and creates a new excel file for each of
the students based on the source file. The name of each new excel file should
be the name of the student. I know I can create new worksheet and then link
the cells between the source file and the new file. However, can I somehow
have the link create a brand new excel file with the name of the contents of
the cell the link is in? For example, if I have a cell in a source file with
the name Paul. Can I have a link here that creates an all new excel file with
Paul as its name?

Thank You,

  #2   Report Post  
Posted to microsoft.public.excel.links
external usenet poster
 
Posts: 11,058
Default Application that separates Excel rows in new worksheets

This just uses the values in cells. If A1 thru A10 contains:

joe
jim
larry
curley
moe
felix
oscar
laverne
shirley
martha

then this macro will create a new workbook of the same names:

Sub shinra()
Dim s(10) As String
For i = 1 To 10
s(i - 1) = Cells(i, 1).Value
Next
For i = 1 To 10
ActiveWorkbook.SaveAs s(i - 1)
Next
End Sub

--
Gary''s Student - gsnu200724


"Shinra14" wrote:


Hello,

I was wondering if I can do the below with links in excel:

I want to create an application that will read an excel file that contains
the names of students in a course and creates a new excel file for each of
the students based on the source file. The name of each new excel file should
be the name of the student. I know I can create new worksheet and then link
the cells between the source file and the new file. However, can I somehow
have the link create a brand new excel file with the name of the contents of
the cell the link is in? For example, if I have a cell in a source file with
the name Paul. Can I have a link here that creates an all new excel file with
Paul as its name?

Thank You,

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 can i repeat certain rows in all worksheets in an excel file reji Excel Discussion (Misc queries) 1 February 12th 07 11:23 AM
Adding rows in Excel worksheets and 'deduping' Janev New Users to Excel 20 September 13th 06 12:34 PM
Locking rows or Regions in Excel worksheets Pat Dools Excel Worksheet Functions 0 August 11th 06 03:00 PM
Need a function that separates over-lapping work shift hours. Katybug1964 Excel Worksheet Functions 0 May 24th 05 03:32 PM
Excel transposing worksheets to rows OhioMilkMan Excel Worksheet Functions 1 December 6th 04 04:54 PM


All times are GMT +1. The time now is 09:50 AM.

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"