Your Products have been synced, click here to refresh
ASSIGN/ST_TM=SYSTEMTIME("HH-mm-ss") ASSIGN/SYS_DT=SYSTEMDATE("MM-dd-yyy'") ASSIGN/MTI1="S:\XXX_CMM_Programs\CUSTOMER\PART NAME\06-REPORTS\\" [COLOR=#FF0000]<--PATH[/COLOR] ASSIGN/MTI2="NAME IT HOWEVER YOU WISH" [COLOR=#FF0000] <-- FILE NAME[/COLOR] ASSIGN/MTI3=CONCAT(MTI2," CAVITY-",C1.INPUT," ",ST_TM," ",SYS_DT) ASSIGN/MTI4=CONCAT(MTI1,MTI3) PRINT/REPORT,EXEC MODE=END,$ TO_FILE=ON,[COLOR=#FF0000]APPEND[/COLOR]=MTI4,AUTO OPEN REPORT=OFF,$ TO_PRINTER=OFF,COPIES=1,$ TO_DMIS_REPORT=OFF,FILE_OPTION=INDEX,FILENAME=,$ REPORT_THEORETICALS=ALL,REPORT_FEATURE_WITH_DIMENSIONS=YES,$ TO_EXCEL_OUTPUT=OFF, PREVIOUS_RUNS=DELETE_INSTANCES
It seems that I need to use the File I/O Command File Dialog but I can't figure out how to direct the "Open" location?
Option Explicit Private Const BIF_RETURNONLYFSDIRS As Long = &H1 Function BrowseFolder(Optional Caption As String, Optional InitialFolder As String) As String Dim SH As Object Dim F As Object Set SH = CreateObject("Shell.Application") Set F = SH.BrowseForFolder(0&, Caption, BIF_RETURNONLYFSDIRS, InitialFolder) If Not F Is Nothing Then BrowseFolder = F.Items.Item.Path End If End Function Sub main() MsgBox BrowseFolder ("Caption", "C:\TEMP") End Sub
© 2024 Hexagon AB and/or its subsidiaries. | Privacy Policy | Cloud Services Agreement |