Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.
Computer Hope forum e-mail issues and down time
0 Members and 1 Guest are viewing this topic.
dim rc as integerrc = shell("notepad.exe")
dim rc as integerrc = shell("cmd /c copy fileA fileB")
Private Sub Combo3_Change() xlDoc = cbx_DailyRep.Text Set xlApp = New Excel.Application Set xlBook = xlApp.Workbooks.Open("d:\oss\" & xlDoc & ".xls") xlApp.Visible = True Set xlBook = Nothing Set xlApp = NothingEnd Sub
I need to ensure whenever I select a Combo Box Option, it will run the respective command
Private Sub Combo3_Change() xlDoc = cbx_DailyRep.Text Set xlApp = New Excel.Application Set xlBook = xlApp.Workbooks.Open("d:\oss\" & [highlight]combo3.seltext[/highlight] & ".xls") xlApp.Visible = True Set xlBook = Nothing Set xlApp = NothingEnd Sub