乡下人产国偷v产偷v自拍,国产午夜片在线观看,婷婷成人亚洲综合国产麻豆,久久综合给合久久狠狠狠9

  • <output id="e9wm2"></output>
    <s id="e9wm2"><nobr id="e9wm2"><ins id="e9wm2"></ins></nobr></s>

    • 分享

      vb生成操作保存提示excel文件

       hdzgx 2019-12-06
      Private Sub 生成寫(xiě)入保存_Click()
      Set xlApp = CreateObject("Excel.Application")
      Set xlBook = xlApp.Workbooks.Add
      xlApp.SheetsInNewWorkbook = 5
      xlApp.Visible = True
       xlApp.Worksheets("Sheet1").Cells(1, 1) = 1
       xlApp.Worksheets("Sheet2").Cells(1, 1) = 2
       xlApp.Worksheets("Sheet3").Cells(1, 1) = 3
      xlBook.saveas (App.Path & "\" & "zgx.xls")
      xlApp.quit
      End Sub


      Private Sub 打開(kāi)本地文件寫(xiě)入不提示保存退出_Click()

      Set xlApp = CreateObject("Excel.Application") '創(chuàng)建EXCEL對(duì)象

      Set xlBook = xlApp.Workbooks.Open("C:\Users\Administrator\Desktop\ls\zgx.xls") '打開(kāi)已經(jīng)存在的EXCEL工件簿文件

      xlApp.Visible = 0 '設(shè)置EXCEL對(duì)象可見(jiàn)(或不可見(jiàn))

      Set xlSheet = xlBook.Worksheets("sheet1") '設(shè)置活動(dòng)工作表

      xlSheet.Cells(3, 3) = "zhg2223333fgfx" '給單元格(row,col)賦值

      xlSheet.Cells(2, 6).Interior.ColorIndex = 3 '設(shè)計(jì)單元格顏色i=1--56

      xlApp.DisplayAlerts = False '保存/不保存Excel文件時(shí)不提示

      xlBook.Close savechanges:=1

      xlApp.DisplayAlerts = True '保存/不保存Excel文件時(shí)提示

      xlApp.quit

      Set xlApp = Nothing

      End Sub

        本站是提供個(gè)人知識(shí)管理的網(wǎng)絡(luò)存儲(chǔ)空間,所有內(nèi)容均由用戶(hù)發(fā)布,不代表本站觀點(diǎn)。請(qǐng)注意甄別內(nèi)容中的聯(lián)系方式、誘導(dǎo)購(gòu)買(mǎi)等信息,謹(jǐn)防詐騙。如發(fā)現(xiàn)有害或侵權(quán)內(nèi)容,請(qǐng)點(diǎn)擊一鍵舉報(bào)。
        轉(zhuǎn)藏 分享 獻(xiàn)花(0

        0條評(píng)論

        發(fā)表

        請(qǐng)遵守用戶(hù) 評(píng)論公約

        類(lèi)似文章 更多