#Excel VBA, 29 bytes
<!-- language-all: lang-vb --> 

An anonymous VBE immediate window function that takes input from cell `[A1]` and outputs to the console. 

    ?1:For i=2To[A1]:?i-1 &i:Next