Find Multiple Command For VBA in Excell

Gustavio

New Member
Joined
Oct 5, 2019
Messages
2
Good day,

I am new to the VBA code for excell.

I am trying to automate a process for my small business.

I am trying to create a macro to find multiple values, one of them is "B00ZL31582".

All i came with so far is:

Cells.Find(What:="B00ZL31582", After:=ActiveCell, LookIn:=xlValues, _
LookAt:=xlWhole, SearchOrder:=xlByRows, SearchDirection:=xlNext, _
MatchCase:=False, SearchFormat:=False).Activate



How can i find multiple values all at the same time?
Then select them all, and after select all of the rows in which the value is.

Basically all i want to do is a mass find all on multiple values...


Thank you for your help in advance!!
 

Excel Facts

Quick Sum
Select a range of cells. The total appears in bottom right of Excel screen. Right-click total to add Max, Min, Count, Average.
You could use a manual or a VBA AutoFilter with multiple criteria. From this part of your post

How can i find multiple values all at the same time?
Then select them all, and after select all of the rows in which the value is.

it seems like you are probably wanting to copy the rows to somewhere else, which an AutoFilter would definitely help with.

Maybe with a drop more info we could find a good solution for your requirement.
 
Upvote 0
My excel document is representing monthly sales for hundreds of products.

Each products has its unique alpha numeric identifier in a separate rows.

One column is representing one sale and the rows separate the date, shipping address, price, indent.. ETC

I wish to input these identifier in the mass search option & run macro so it can find them and select the rows which they are in.


P.s. I am french, therefore i am sorry if my English is rough!
 
Upvote 0

Forum statistics

Threads
1,224,739
Messages
6,180,674
Members
452,993
Latest member
FDARYABEE

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