1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
|
Dim Flg as Boolean
Select Case True
Case combobox2 = "A" And Sheet2.SalesSUP_03_A
ss03 = "D:\Documents and Settings\be30enginering\My Documents\shared\structure\template A\1.0 Project Estimation And Booking\1.1 Sales Support\1.1.03 Correspondence to-from Third Party"
Flg=True
Case combobox2 = "B" And Sheet2.SalesSUP_03_B
ss03 = "D:\Documents and Settings\be30enginering\My Documents\shared\structure\template B\1.0 Project Estimation And Booking\1.1 Sales Support\1.1.03 Correspondence to-from Third Party"
Flg=True
Case combobox2 = "C" And Sheet2.SalesSUP_03_C
ss03 = "D:\Documents and Settings\be30enginering\My Documents\shared\structure\template C\1.0 Project Estimation And Booking\1.1 Sales Support\1.1.03 Correspondence to-from Third Party"
Flg=True
Case combobox2 = "D" And Sheet2.SalesSUP_03_D
ss03 = "D:\Documents and Settings\be30enginering\My Documents\shared\structure\template D\1.0 Project Estimation And Booking\1.1 Sales Support\1.1.03 Correspondence to-from Third Party"
Flg=True
End Select
if Flg then
SHCreateDirectoryEx 0&, ss03, 0&
fso.CopyFile "D:\Documents and Settings\be30enginering\My Documents\shared\Safety inspection.doc", ss03 & "\"
end if |