Update Multiple Labels on Sheet when Corresponding Cells on another sheet are updated.

Krakenfan69

New Member
Joined
Nov 28, 2022
Messages
2
Office Version
  1. 365
Platform
  1. Windows
Hi guys,

I am kludging together some vba on a sheet and could use some help. I have several Labels on Sheet1 that I would like to update if the corresponding cells on sheet 2 are updated. I have the following code figured out to work for the first one but when I added the code for the others they didn't work. Sadly my labels are no in numerical order either.

Private Sub Worksheet_Change(ByVal Target As Range)
Sheet1.Label51.Caption = Sheet2.Range("B40")
Sheet1.Label50.Caption = Sheet2.Range("F40")
End Sub

So adding the same code again or trying to place the references all between the Private_Sub and End Sub didn't work either.

Thanks for any help,

Kraken Fan #69
 

Excel Facts

How to total the visible cells?
From the first blank cell below a filtered data set, press Alt+=. Instead of SUM, you will get SUBTOTAL(9,)
Update: I'm an idiot. It wasn't working because I was pushing the data into the wrong Label tags. I was able to group them all under the Worksheet_Change header and they are working fine. Sometimes just talking through a problem helps you work it out.

Thanks,

Kraken Fan #69
 
Upvote 0

Forum statistics

Threads
1,215,734
Messages
6,126,543
Members
449,316
Latest member
sravya

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