copying data from one worksheet to several based on criteria

M

marcia2026

I have a control workbook with 25 sheets in it, one for each workday. At the
end each of day, I would like to copy the information from the control sheet
to several sheets based on the criteria. I am currently using the macro that
I copied from Ron de Bruin's tip page. (I can't thank him enough), but I
would like to make one change and be able for the user to specify the
worksheet to copy from and to be able to name the new sheets. Can anyone
help please???
thanks,
marcia
 
I

Internetdomainowner

I have a control workbook with 25 sheets in it, one for each workday.  At the
end each of day, I would like to copy the information from the control sheet
to several sheets based on the criteria.  I am currently using the macro that
I copied from Ron de Bruin's tip page.  (I can't thank him enough), butI
would like to make one change and be able for the user to specify the
worksheet to copy from and to be able to name the new sheets.  Can anyone
help please???
thanks,
marcia

Can you be more specific -- what options / variables determine what
page gets what? If I was to approach this type of thing I would have
IF statements control that type of thing...

Private Sub OptionButton1_Click()
If OptionButton1.Value = True Then
Sheets("MySheet1").Range("A1").Value =
Sheets("MySheet2").Range("B1").Value
End If
End Sub

Private Sub OptionButton2_Click()
If OptionButton2.Value = True Then
Sheets("MySheet1").Range("A2").Value =
Sheets("MySheet2").Range("B2").Value
End If
End Sub
 

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