Automatically copy from Master worksheet to others

S

Susan S

I am new to Excel, so please pardon my low level of comprehension.

I have a large workbook with 4 worksheets (master, Entity A, Entity B and
Entity C), which tracks stock ownership by the three different entities. I
am trying to find out if it's possible to set up some sort of condition where
any entry made in the Master worksheet containing "Entity A" automatically
copies to the Entity A worksheet, etc. I can't link specific cells because I
have no clue what cells will pertain to which entity.

Any ideas/suggestions are welcomed - even if it's to say no, you can't do
that.

Thanks much!
 
S

Simon Lloyd

Without more to go on i can only give you a general idea, put this in
the Master worksheet code module


Code:
--------------------
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
Select Case Target.Value
Case "Entity A"
Target.EntireRow.Copy Destination:=Sheets("Entity A").Range("A" & Rows.Count).End(xlUp).Offset(1, 0)
Case "Entity B"
Target.EntireRow.Copy Destination:=Sheets("Entity B").Range("A" & Rows.Count).End(xlUp).Offset(1, 0)
Case "Entity C"
Target.EntireRow.Copy Destination:=Sheets("Entity C").Range("A" & Rows.Count).End(xlUp).Offset(1, 0)
End Select
End Sub
--------------------

I am new to Excel, so please pardon my low level of comprehension.

I have a large workbook with 4 worksheets (master, Entity A, Entity B
and
Entity C), which tracks stock ownership by the three different
entities. I
am trying to find out if it's possible to set up some sort of condition
where
any entry made in the Master worksheet containing "Entity A"
automatically
copies to the Entity A worksheet, etc. I can't link specific cells
because I
have no clue what cells will pertain to which entity.

Any ideas/suggestions are welcomed - even if it's to say no, you can't
do
that.

Thanks much!


--
Simon Lloyd

Regards,
Simon Lloyd
'The Code Cage' (http://www.thecodecage.com)
 
S

Susan S

Thank you for your response, Simon. Hate to admit this, but I don't know
what the "Master worksheet code module" is, so I can't try your suggestion to
see if it works! I have been searching for training, etc., online, but so
far I'm mostly finding training for things I do know or won't use.

Sorry if I'm being hopelessly slow. I really DO appreciate the help!
 
M

Max

Try this sample from my archives, a non-array formulas solution:
http://www.savefile.com/files/430142
AutoCopy Lines to Resp Sht Non Array.xls
(Full details inside, nicely rendered. Easy to adapt ..)

Data is continuously entered in a master ("parent") sheet, with lines neatly
auto-copied to each individual ("child") sheet based on the values within a
key column.

In your case, that key column will be where you have the Entity A, Entity B,
etc
Celebrate your success, click the YES button below
--
Max
Singapore
http://savefile.com/projects/236895
Downloads:27,000 Files:200 Subscribers:70
xdemechanik
 
S

Simon Lloyd

*How to Save a Worksheet Event Macro*
1. *Copy* the macro using *CTRL+C* keys.
2. Open your Workbook and *Right Click* on the *Worksheet's Name Tab*
for the Worksheet the macro will run on.
3. *Left Click* on *View Code* in the pop up menu.
4. *Paste* the macro code using *CTRL+V*
5. Make any custom changes to the macro if needed at this time.
6. *Save* the macro in your Workbook using *CTRL+S*

I will try to help you through it as much as possible, Max' suggestion
looks good :)
Thank you for your response, Simon. Hate to admit this, but I don't know
what the "Master worksheet code module" is, so I can't try your
suggestion to
see if it works! I have been searching for training, etc., online, but
so
far I'm mostly finding training for things I do know or won't use.

Sorry if I'm being hopelessly slow. I really DO appreciate the help!
--
Susan S.



Rows.Count).End(xlUp).Offset(1, 0)
Rows.Count).End(xlUp).Offset(1, 0)
Rows.Count).End(xlUp).Offset(1, 0)
Lloyd' (http://www.thecodecage.com/forumz/member.php?userid=1)
- The Code Cage Forums'
(http://www.thecodecage.com/forumz/showthread.php?t=111072)


--
Simon Lloyd

Regards,
Simon Lloyd
'The Code Cage' (http://www.thecodecage.com)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top