Code to see User Row Selection

slimimi

Well-known Member
Joined
May 27, 2008
Messages
532
Hi there - using excel 2003.

Please can someone tell me the code i need to type so that excel will find a cell (based on current user row position) together with Column B???

Thanks in advance.
 

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.
By "based on current user row position", I'll presume you mean the active cell row :-

Cells(ActiveCell.Row, 2).Select

(This is based on a different presumption than Jon von der Heyden's post)
 
Last edited:
Upvote 0
Thanks alot guys.
How do i implement that code and where to paste it?
Basically - code looks at range B or Column B & Selection Row and then looks for a file in, eg, Folder - Trade Logs - Subfolder - Chart Pics. Once it finds the file - it inserts it as a hyperlink into the same cell it looked in earlier, ie, Range B & Selection Row.

Really appreciate your kind help.
 
Upvote 0
Can i just add to that - if code does not find file - it opens a message box with 2 command button options to CANCEL (unload message box) and then places the text "No Chart" in the same cell it looked in earlier. and a TRY AGAIN button which will simply just run the macro again.

THANKS in advance...
 
Upvote 0
What do you mean by "Selection Row" ?

Do you mean the active cell row, or the first row in the selection?
 
Upvote 0
Hi Boller - sorry and thanks for your help.

I mean the active cell row on, eg, Sheet1.

Example, user is logging in details on row 6.
All code should pertain to that row (6) in this case.

Does that make sense? Sorry if i haven't made myself clear.
Please tell me what other info you need.
 
Upvote 0

Forum statistics

Threads
1,214,929
Messages
6,122,315
Members
449,081
Latest member
tanurai

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