?? frmfwconfig.frm
字號:
VERSION 5.00
Begin VB.Form frmFwConfig
Caption = "配置文檔"
ClientHeight = 9810
ClientLeft = 60
ClientTop = 345
ClientWidth = 9945
LinkTopic = "Form1"
ScaleHeight = 9810
ScaleWidth = 9945
StartUpPosition = 3 '窗口缺省
Begin VB.CommandButton Command1
Caption = "Command1"
Height = 975
Left = 1440
TabIndex = 3
Top = 4080
Width = 3495
End
Begin VB.TextBox Text3
Height = 375
Left = 4680
TabIndex = 2
Text = "Text3"
Top = 720
Width = 1455
End
Begin VB.TextBox Text2
Height = 375
Left = 2400
TabIndex = 1
Text = "Text2"
Top = 720
Width = 1215
End
Begin VB.TextBox Text1
Height = 495
Left = 600
MultiLine = -1 'True
TabIndex = 0
Text = "frmFwConfig.frx":0000
Top = 600
Width = 1215
End
Begin VB.Label Label2
Caption = "Label2"
Height = 735
Left = 3240
TabIndex = 5
Top = 2160
Width = 1815
End
Begin VB.Label Label1
Caption = "Label1"
Height = 495
Left = 1080
TabIndex = 4
Top = 2280
Width = 1455
End
End
Attribute VB_Name = "frmFwConfig"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
Dim Doc As New Document
Dim Visi As Boolean
Private Sub Command1_Click()
Dim Dlg As Word.Dialog
Doc.Range = Text1.Text
Set Dlg = Doc.Application.Dialogs(wdDialogDocumentStatistics)
Dlg.Execute '統(tǒng)計單詞和字符
Text2.Text = Dlg.Words '顯示單詞數(shù)
Text3.Text = Dlg.Characters '顯示字符數(shù)
End Sub
Private Sub Form_load()
Form1.Caption = "調(diào)用 Word 2000"
Text1.Text = ""
Text2.Text = ""
Text3.Text = ""
Command1.Caption = "統(tǒng)計單詞"
Label1.Caption = "單詞數(shù)"
Label2.Caption = "字符數(shù)"
Visi = Doc.Application.Visible
End Sub
Private Sub Form_Unload(Cancel As Integer)
If Visi Then
Doc.Close savechanges:=False
Else
Doc.Application.Quit savechanges:=False
End If
End Sub
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -