How can I write to the console from Excel vba code?
stackoverflow.com › questions › 2142295Jan 26, 2010 · You can try using Debug.WriteLine () to output your debugging information to the Visual Studio Output window, but I have the nagging feeling you can't do that unless you're writing a Console application. If it indeed doesn't work, try using the Console.SetOut () method to redirect the Console.WriteLine () strings to a StreamWriter, which could be a file on your machine.
Print statement (VBA) | Microsoft Learn
learn.microsoft.com › en-us › officeMar 29, 2022 · The outputlist argument settings are: [ { Spc ( n) | Tab [ ( n) ]}] [ expression ] [ charpos ] Setting. Description. Spc ( n) Used to insert space characters in the output, where n is the number of space characters to insert. Tab ( n) Used to position the insertion point to an absolute column number, where n is the column number. Use Tab with no argument to position the insertion point at the beginning of the next print zone.