Macro not updating using =rand() as the trigger

opus13

New Member
Joined
Mar 14, 2012
Messages
5
I have a column of data that I am sorting via a list of =rand() outputs in order to create a randomized list. I have created a macro of sort>expand, and it works correctly. I also have a script that detects a change in a cell, and if there is a change to run the macro. Yup, that works as well.

I would like the list to update with any data change on the page, so I placed '=randbetween(1,999)' in the referenced cell, trying to get the list to reorder itself any time a value on the page is changed.

The list will only update if I put the cursor into the cell containing =randbetween and strike 'return'.

How do I get the list to update any and every time the ran cell is updated?

Sample file: [url]http://www.6t2.net/9/[/URL]

Enter a character anywhere on the page, and the 'RNG Key' updates, along with column A. Enter a static # and the list updates.

Thanks in advance!
 
Last edited:

Excel Facts

Links? Where??
If Excel says you have links but you can't find them, go to Formulas, Name Manager. Look for old links to dead workbooks & delete.

Forum statistics

Threads
1,216,111
Messages
6,128,898
Members
449,477
Latest member
panjongshing

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