?? form1.frm
字號:
VERSION 5.00
Object = "{F9043C88-F6F2-101A-A3C9-08002B2F49FB}#1.2#0"; "comdlg32.ocx"
Begin VB.Form Form1
Caption = "Form1"
ClientHeight = 3150
ClientLeft = 60
ClientTop = 390
ClientWidth = 8115
LinkTopic = "Form1"
ScaleHeight = 3150
ScaleWidth = 8115
StartUpPosition = 3 '窗口缺省
Begin MSComDlg.CommonDialog DlgFile
Left = 4920
Top = 1320
_ExtentX = 847
_ExtentY = 847
_Version = 393216
End
Begin VB.CommandButton Command1
Caption = "Command1"
Height = 615
Left = 3240
TabIndex = 0
Top = 120
Width = 2655
End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
' GeneralBook.Enabled = False
Dim VBExcelApp As Object
Dim VBBook As Object
Dim VBSheet As Object
Dim ii, iii As Integer
Dim cAscii As Variant
Dim strCol As String
Dim i As Integer
Dim s As String
''''''''''''''''''''''''''''''''''''''''''''''''''
DlgFile.DialogTitle = "保存文件"
DlgFile.Filter = "MS Excel file (*.xls)|*.xls"
DlgFile.FileName = ""
DlgFile.ShowOpen
s = DlgFile.FileName
''''''''''''''''''''''''''''''''''''''''''''''''''
Set VBExcelApp = CreateObject("Excel.Application")
Set VBBook = VBExcelApp.Workbooks.Add
Set VBSheet = VBBook.Worksheets("sheet1")
VBExcelApp.Visible = True
''''''''''''''''''''''''''''''''''''''''''''''''''
VBSheet.Range("A1:A1").Value = "555"
VBBook.SaveAs s
Set VBSheet = Nothing
Set VBBook = Nothing
Set VBExcelApp = Nothing
End Sub
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -