Board logo

標題: 請問隱常問題.... [打印本頁]

作者: steven    時間: 2010-6-19 21:10     標題: 請問隱常問題....

如範例1請大大指導謝謝...
作者: Hsieh    時間: 2010-6-19 21:58

回復 1# steven
  1. Private Sub CommandButton1_Click()
  2. Dim D
  3. Set D = CreateObject("Scripting.FileSystemObject")
  4. For Each ob In Sheet1.OLEObjects
  5. If ob.Name Like "ComboBox*" Then ob.Visible = False
  6. Next
  7. ActiveWorkbook.Save
  8. D.CopyFile ActiveWorkbook.FullName, "D:\Test.xls"
  9. Sheet1.OLEObjects.Visible = True
  10. End Sub
複製代碼

作者: steven    時間: 2010-6-20 20:56

謝謝大大指導感恩.




歡迎光臨 麻辣家族討論版版 (http://forum.twbts.com/)