Hi everyone,
the attached macro works for all selected cells.
You can change it to work only for the sheet "PRC2" column I3:I1000Please Login or Register to view this content.
Thank you
john
Hi everyone,
the attached macro works for all selected cells.
You can change it to work only for the sheet "PRC2" column I3:I1000Please Login or Register to view this content.
Thank you
john
Try this code,although untested since the last line is not an end sub(not complete sub)
Please Login or Register to view this content.
Hi maniacb thanks you.
Error here:
rng = Range("I3:I1000")
This is hopefully working to your expectations.
Please Login or Register to view this content.
No maniacb in not correct.
If I select example in sheet "PRC2" value AAA10 > button "TROVA/FIND"
in sheet "PRC1" the value AAA10 must be selected.
HI
try this..
zeddyPlease Login or Register to view this content.
Hi zzeddy thanks you.
Your macro is almost exact but it should only work for column I sheet PRC2.
If a different column / cell is selected, it must give an error
Just change the ranges on this line from col A to col IPlease Login or Register to view this content.
Fluff13 error:
error run time 91
variable or block object not set
Hi
A slight adjustment then..
zeddyPlease Login or Register to view this content.
Excel Adjustment Bureau
In that case please post your modified code.error run time 91
variable or block object not set
Hi zeddy work well.
is it possible to modify with new msgbox if in PRC1 there is no value as selected in PRC2?
john
For fluffy13
i changed the line as you say
error 91
Please Login or Register to view this content.
Please Login or Register to view this content.
I misunderstood what you were trying to do, use the commented out line & it works fine.
Hi John
Re: is it possible to modify with new msgbox if in PRC1 there is no value as selected in PRC2?
Here's some adjusted code..
zeddyPlease Login or Register to view this content.
Excel Triple-A Solutions
Hi zwddy work well.
'Dim zMatch As Worksheet correct is Worksheet?
Please Login or Register to view this content.
Dim zMatch As variant
Please Login or Register to view this content.
Ben Van Johnson
Hi protonleath
I tried your macro but it doesn't work correctly, selecting the cell sheet PRC2 doesn't show the same in the sheet PRC1
john
It works the way you described above. I added some code to report findings and errors, though.
Hi protonleath your macro work well.
I add this in your macro:
to display the selected cell and color the row.Please Login or Register to view this content.
but it does not work
to remove the colored line in the module of the sheet PCI1 i put
Please Login or Register to view this content.
Last edited by john_cash; 08-09-2020 at 07:12 AM.
Correct I think it is correct.
Added:
and i can't add in this msgPlease Login or Register to view this content.
in the sheet PRC1Please Login or Register to view this content.
john
Last edited by john_cash; 08-09-2020 at 11:48 AM.
Please Login or Register to view this content.
Please Login or Register to view this content.
Last edited by protonLeah; 08-09-2020 at 04:14 PM.
Hi protonleath, thanks you.
john
Last edited by john_cash; 08-10-2020 at 01:01 PM.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks