title: Open sorting dialog box via VBA in Excel
body: <p>In Excel (via VBA) I preselect a range and set certain predefined sorting options. Instead of executing the sorting via VBA I want to display the dialog box as it would be when clicking on the sorting button in the ribbon.</p>
  
  <p>This way the user would have the option to check the sorting settings and change them if necessary.</p>
  
  <p>Here's a screen shot of what I mean. I marked the button and the dialog box with a red circle. Ignore the enabled filter, it should work if the filter is disabled as well:<br>
  <a href="https://i.stack.imgur.com/7j5tD.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/7j5tD.png" alt="enter image description here"></a></p>