PC Review


Reply
Thread Tools Rate Thread

copying data from one worksheet to several based on criteria

 
 
marcia2026
Guest
Posts: n/a
 
      30th Jul 2008
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
 
Reply With Quote
 
 
 
 
Internetdomainowner@hotmail.com
Guest
Posts: n/a
 
      31st Jul 2008
On Jul 30, 6:24*pm, marcia2026 <marcia2...@discussions.microsoft.com>
wrote:
> 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
 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Copying data based on filter criteria no_rhythm Microsoft Excel Worksheet Functions 1 10th Jan 2008 09:45 PM
Copying rows from worksheet A to worksheet B based on criteria =?Utf-8?B?am1tMDYyNg==?= Microsoft Excel Programming 2 11th Apr 2007 01:36 AM
Copying data based on certain criteria haas786@yahoo.com Microsoft Excel Programming 4 10th Apr 2007 02:22 PM
Transferring data from one worksheet to another based on criteria =?Utf-8?B?ZHJlYWQ=?= Microsoft Excel Misc 5 28th Jul 2006 07:37 PM
Copying data from one worksheet to another based on criteria Caatt Microsoft Excel Misc 1 15th Jun 2006 10:19 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 11:52 AM.