Automatic sub run using external data tags

The Mat Hatter

New Member
Joined
Apr 24, 2015
Messages
1
Hi,

I am utilizing tags that are imported using a 3rd party program, and they gradually change over time. What I want to do is set up my program so that I can leave this workbook up continuously, and have the sub run every time the tag is updated. There are a variety of locations where these tags are located on the sheet, so I would prefer to have it run when any tag is updated, not just specific ones. The tags are entered in the form of a formula, so I though worksheet_calculate was the way to go, but I used randbetween() to simulate changes, and each time I hit F9, nothing happened as far as the macro I wanted to run.

The macro will run each time I run it manually, so I know the process if fine, I just don't know how to call it properly. What I have used is below:

Private Sub worksheet_calculate()


'make_color_bars macro

End Sub

AND

Private Sub worksheet_change()

'make_color_bars macro

end sub

I have also set it up to where the macro would just run every x amount of seconds. This works, but it is not preferable.

Thanks in advance!
 

Excel Facts

Why are there 1,048,576 rows in Excel?
The Excel team increased the size of the grid in 2007. There are 2^20 rows and 2^14 columns for a total of 17 billion cells.
:confused: Works for me, that is if have:

make_color_bars macro

i.e. rather than the commented out:

'make_color_bars macro
 
Upvote 0

Forum statistics

Threads
1,214,877
Messages
6,122,051
Members
449,064
Latest member
scottdog129

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