Button VBA To Refer To A Cell

JIMBOB77

New Member
Joined
Jul 17, 2018
Messages
13
Hi
I Have A Workbook.
In Sheet 1, Column A Contains Order Numbers.
In Column B I Have Buttons (1 Per Row).

In Sheet 2, Column A Contains The Same Order Numbers (But With Different Info)

What I Need To Do Is...
If I Click The Button In B24 It Takes Reference Of The Value In A24 Then Goes To Sheet 2 And Finds The Cell In Column A Of The Same Value.

I Need To Use The Same Macro For All Buttons (Eg It Refers To The Cell To The Left Of The Button)
 
Hi
Found A Formatting Error
Now Works...
Wondered If You Could Assist With A Slight Update....
Guessing I Need An Extra Argument In The Second Line Of Code.
Basically ...
When I Double Click The Cell In Column - If The Cell In Column E (Same Row) = "BOOKED" Then Exit Sub
 
Upvote 0

Excel Facts

Spell Check in Excel
Press F7 to start spell check in Excel. Be careful, by default, Excel does not check Capitalized Werds (whoops)
Below
Code:
    Cancel = True
Insert
Code:
    If UCase(Target.Offset(, 4)) = "BOOKED" Then Exit Sub
 
Upvote 0
As Expected I Get N/A
What Could Be Different About The Numbers??

A Number in one Sheet ... and a Text in the other Sheet ...

Watch out about blanks ...anywhere in your cells !!!
 
Upvote 0

Forum statistics

Threads
1,223,952
Messages
6,175,596
Members
452,657
Latest member
giadungthienduyen

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