Hello.
Sub ListPermut()
'This macro creates a list of all permutations
'Define variables
Dim ws As Worksheet, Ans As String, ans1() As String, digits As Integer
Dim num As Integer, p As Long, i As Long, t As Long
Dim rng() As Long, c As Long, rng1() As String
'Ask for user input
Ans =...