Combine information on worksheets

thetadcat

New Member
Joined
Aug 17, 2011
Messages
2
Here's the situation:

I produced a macro that copies one line from one spreadsheet to another. Here's the code:

Sub Macro6()
'
' Macro6 Macro
'
' Keyboard Shortcut: Ctrl+x
'
Range("A2").Select
Selection.Copy
Windows("Computer user list.xlsx").Activate
Range("Table_talus_SMS_DHS_DHS_Inventory[Computer Name]").Select
Selection.find(What:="A2104444", After:=ActiveCell, LookIn:=xlFormulas _
, LookAt:=xlPart, SearchOrder:=xlByRows, SearchDirection:=xlNext, _
MatchCase:=False, SearchFormat:=False).Activate
Selection.FindNext(After:=ActiveCell).Activate
Range("C5:G5").Select
Application.CutCopyMode = False
Selection.Copy
Windows("My computers (08-16-2011).xlsx").Activate
Range("F2").Select
ActiveSheet.Paste
End Sub

What I need to do is have the macro find all like computer names and combine the information on one sheet. This macro does that for only one line. Is there a way to make the options for search and find be a wildcard to find all numbers that match and then combine.

I tried posting this question earlier but I don't think I explained it very clearly.

Thanks in advance for any help.

cc
 

Excel Facts

What do {} around a formula in the formula bar mean?
{Formula} means the formula was entered using Ctrl+Shift+Enter signifying an old-style array formula.
Care to show us some sample data and explain how/where each row in the sample would be copied to and why?
 
Upvote 0

Forum statistics

Threads
1,224,550
Messages
6,179,459
Members
452,915
Latest member
hannnahheileen

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top