an easy one... but not for a beginner ("find" in a

IgorDepecker

New Member
Joined
Jan 8, 2005
Messages
35
tried hours and hours... the message board is the only solution left:
I should need a macro to find (ctrl-f) the data in f.i. cell A1 on sheet 1 somewhere on sheet 2... problem is that cell A1 on sheet 1 is not fixed (e.g. via a validation list);

Part of the macro that I'm stuck:
Cells.Find(What:="?", ...) can't define the data to look for where I put ? ...

thanks a lot for your help
 

Excel Facts

Will the fill handle fill 1, 2, 3?
Yes! Type 1 in a cell. Hold down Ctrl while you drag the fill handle.
Re: an easy one... but not for a beginner ("find"

IgorDepecker said:
tried hours and hours... the message board is the only solution left:
I should need a macro to find (ctrl-f) the data in f.i. cell A1 on sheet 1 somewhere on sheet 2... problem is that cell A1 on sheet 1 is not fixed (e.g. via a validation list);

Part of the macro that I'm stuck:
Cells.Find(What:="?", ...) can't define the data to look for where I put ? ...

thanks a lot for your help
Hi IgorDepecker:

Welcome to MrExcel Board!

If I understand you correctly, you should use ...
Code:
Cells.Find(What:=[Sheet1!A1], ...
I hope this helps!
 
Upvote 0
Re: an easy one... but not for a beginner ("find"

Yogi Anand said:
IgorDepecker said:
tried hours and hours... the message board is the only solution left:
I should need a macro to find (ctrl-f) the data in f.i. cell A1 on sheet 1 somewhere on sheet 2... problem is that cell A1 on sheet 1 is not fixed (e.g. via a validation list);

Part of the macro that I'm stuck:
Cells.Find(What:="?", ...) can't define the data to look for where I put ? ...

thanks a lot for your help
Hi IgorDepecker:

Welcome to MrExcel Board!

If I understand you correctly, you should use ...
Code:
Cells.Find(What:=[Sheet1!A1], ...
I hope this helps!


Yogi Anand,
is indeed what I want to do, thanks for your reply but still doesn't work...
I am in cell A1 on sheet 2 and run the following macro:

Cells.Find(What:=[Sheet1!A1], After:=ActiveCell).Activate
 
Upvote 0
Re: an easy one... but not for a beginner ("find"

Hi IgorDepecker:

Please post the entire code for your Sub and let us take it from there!
 
Upvote 0
Re: an easy one... but not for a beginner ("find"

Yogi Anand said:
Hi IgorDepecker:

Please post the entire code for your Sub and let us take it from there!

Standing in cellA1 on sheet 2:

Sub Macro1()

Cells.Find(What:=[Sheet1!A1], After:=ActiveCell, LookIn:=xlFormulas, LookAt:=xlPart, SearchOrder:=xlByRows, SearchDirection:=xlNext, MatchCase:=False).Activate

End Sub
 
Upvote 0
Re: an easy one... but not for a beginner ("find"

Hi IgorDepecker:

With the understanding that your DATA|Validation cell is cell A1 in Sheet1, your data is in the Active Worksheet Sheet2, the code works fine for me.

Please check your DATA|Validation setup -- and if you want to discuss this further , please provide details for your DATA|Validation for cell A1 in Sheet1.
 
Upvote 0
Re: an easy one... but not for a beginner ("find"

Yogi Anand said:
Hi IgorDepecker:

With the understanding that your DATA|Validation cell is cell A1 in Sheet1, your data is in the Active Worksheet Sheet2, the code works fine for me.

Please check your DATA|Validation setup -- and if you want to discuss this further , please provide details for your DATA|Validation for cell A1 in Sheet1.

Thank you Yogi, it works
 
Upvote 0

Forum statistics

Threads
1,203,073
Messages
6,053,379
Members
444,660
Latest member
Mingalsbe

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