Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 15
Default Linking added sheets

Hello, I have a file with two ws: Scoreform and Results. The Scoreformws is a
breakdown of the scores a contestant can get on several parts. The Resultsws
shows the overall score of all contestants and which is a cell from
Scoreformws. With a simple macro the Scoreformws can be copied as much as
there contestants in every game. The added Scoreformws are numbered. What I
have to do manually right now is to connect the endscores of every contestant
in the Resultsws by linking the cells from all Scoreformws with the Resultws.
I would like to achieve this automatically. Can anyone help on this?

Thank you very much.

Noepie
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 245
Default Linking added sheets

Hi Noepie

I presume you workbook will end up with one results sheet and many
scoreforms. If so, its a matter of looping through all worksheets, copying
the contestant details and score to your results sheet. In the loop, you
need to exclude from the copy process any non-scoreform sheets. If results
is the only sheet that is not a scoresheet, you code will look something
like:

i = 'set start row in results

For each ws in Worksheets
If ucase( ws.name) < "RESULTS" Then
'copy contestant name to results
' example Worksheets("Results").Range("A" & i) = ws.Range("A1")
'add and copy results to Worksheets("Results").Range("B" & i)
' example Worksheets("Results").Range("B" & i) = ws.Range("B10")
i = i+1 ' increment the row
end if
Next WS

If you need more help, someone else may respond to your further request
while I catch up on some sleep!


--
Steve

"Noepie" wrote in message
...
Hello, I have a file with two ws: Scoreform and Results. The Scoreformws
is a
breakdown of the scores a contestant can get on several parts. The
Resultsws
shows the overall score of all contestants and which is a cell from
Scoreformws. With a simple macro the Scoreformws can be copied as much as
there contestants in every game. The added Scoreformws are numbered. What
I
have to do manually right now is to connect the endscores of every
contestant
in the Resultsws by linking the cells from all Scoreformws with the
Resultws.
I would like to achieve this automatically. Can anyone help on this?

Thank you very much.

Noepie


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
calculate totals from added sheets des-sa[_2_] Excel Discussion (Misc queries) 7 July 16th 08 10:17 PM
added line won't update accross sheets keltawn Excel Discussion (Misc queries) 1 September 1st 05 12:16 PM
Items Added to Right-Click Menu Only Visible From Some Sheets Carroll[_2_] Excel Programming 0 August 18th 05 02:02 PM
Linking a cell to update when rows added [email protected] Excel Discussion (Misc queries) 0 July 20th 05 02:37 PM
compare sheets for added or deleted rows helpwithXL Excel Programming 0 May 10th 05 06:02 PM


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