I cant get the actual address of the cell that was selected from "Target.Address", am I going about this the wrong way?
I am getting Target from:
Please Login or Register to view this content.
I cant get the actual address of the cell that was selected from "Target.Address", am I going about this the wrong way?
I am getting Target from:
Please Login or Register to view this content.
Regards
Rick
Win10, Office 365
Please Login or Register to view this content.
If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.
Is this doing what you meant it to do:Please Login or Register to view this content.
Trevor Shuttleworth - Retired Excel/VBA Consultant
I dream of a better world where chickens can cross the road without having their motives questioned
'Being unapologetic means never having to say you're sorry' John Cooper Clarke
Thank you, that presents one of the two issues I was thinking of.
1. Passing that variable to a Sub in a module "select_by_color(sColor)".
2. Getting the address (you just solved this).
I am curious as to why you need the address in the first place. I've seen cases where people think they need to use the address when what they really need is to directly reference a cell object. Could you show more context?
My thought for the address.
The macro which user JohnTopley originally helped me with has had a row added before row 3.
Then I added more options to:
asPlease Login or Register to view this content.
This causes two extra rows to be copied when I select cell "A3".Please Login or Register to view this content.
I want to use the cell address for "A3" at selection to add code to remove the two rows based on the cell selected (A3).
If cell A3 is selected, I need to remove 2 rows from another sheet where the data is being placed.
Last edited by Rick_Stanich; 04-09-2024 at 10:06 AM.
Yes and no?
It showed me how to get the address.
I see now how my question did not encapsulate the entire need.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks