I am using following code to display a file dialog box..
dim cdl1
dim txtfile
set cdl1 = createobject("MSComDlg.CommonDialog"
cdl1.showOpen
txtFile = cdl1.filename
msgbox txtfile
when I tried to run this code , it gives "The Common dialog function failed during initialisation" error.
please help me to fix this problem.
Thanks,
anil.
dim cdl1
dim txtfile
set cdl1 = createobject("MSComDlg.CommonDialog"
cdl1.showOpen
txtFile = cdl1.filename
msgbox txtfile
when I tried to run this code , it gives "The Common dialog function failed during initialisation" error.
please help me to fix this problem.
Thanks,
anil.