I have this really old macro from 1996 (yes!) that I think is somewhat Visual Basic (not sure tho) that I cannot get to work in VBA. The most of the code is running fine, but I am troubled by the UserForm
as it is called Dialog
in this code.
I think I need to create a userform instead as VB does not operate with that. But I am not sure how to tackle it. Should I just create a new userform and place the objects according to the coordinates and then it will work or what is best practice?
Begin Dialog UserDialog x,y,291,171,"Batch Printing",.DialogFunction
OKButton 204, 152, 40, 14
CancelButton 248, 152, 40, 14
Text 8, 4, 20, 8, "Path:", .Text1
TextBox 8, 16, 96, 12, .dPath
Text 8, 56, 32, 8, "Files:", .Text2
ListBox 8, 68, 96, 96, sFilesList$, .dFiles
PushButton 36, 36, 40, 14, "&Refresh", .dRefresh
GroupBox 112, 8, 176, 92, "Select a printer", .SelectPrinter
OptionGroup .PrinterSelection
OptionButton 120, 24, 92, 8, "&Default Printer", .DefPrint
OptionButton 120, 56, 84, 8, "&Specific Printer", .SpecPrint
Text 128, 36, 148, 8, sDefaultPrinter, .Text3
DropListBox 120, 68, 160, 52, sPrinterList, .SpecificPrinter
End Dialog