10ExcelVBA10.11210.110.1345610.210.27110.310.3210.410.43Macrol10.5EXCEL1000110.5410.610.6MicrosoftVisualBasic1ExcelVisualBasicVisualBasic10.710.7VisualBasic210.810.834F55MicrosoftExcel10.910.9MicrosoftExcelVBA12Macro210.1010.101EXCEL333VisualBasic10.1110.1110.1210.12Ctrl+V110.1310.13210.1410.143Ctrl+Shift+S10.2VBA110.15EXCEL1000110.15210.1610.16310.1710.175110.1810.18210.1910.19310.2010.201EXCEL351210.2110.213123410.2210.225VisualBasicWithEndWith10.2310.236VisualBasic10.2410.247EXCEL1000110.2510.25VBA110.26210.2710.2610.27310.2810.284VisualBasic10.2910.29Sub1_CallleijiaEndSub5leijia()10.3010.30Subleijia()Dima,b,cAsLonga=Cells(1,2)b=c=0While(ba)b=b+1c=c+b1EXCEL37Wendc=cCells(2,2)=cEndSub6VisualBasic10.3110.317C3500C412525010.3210.32Excel12Excele10.3310.33310.3410.34410.3510.355Ctrl+A10.3610.36110.3710.37EXCEL10001210.3810.383410.3910.39510.4010.40610.4110.41710.4210.428D5310.4310.4311EXCEL3910.4410.44210.4510.453VisualBasic10.4610.46Sub()ANS=MsgBox(vbYesNo,!)IfANS=vbNoThenExitSubEndSub4VisualBasic!10.4710.475!VisualBasicMicrosoft12VisualBasic34Microsoft56InputBox110.4810.48210.49EXCEL1000110.493VisualBasic10.5010.50Sub()a=InputBox()Cells(1,2)=aIfaThenb=InputBox()Cells(2,2)=bEndIfEndSub4VisualBasic10.5110.51510.5210.52610.5310.53710.5410.54110.551EXCEL4110.552VisualBasic10.5610.56Sub()SelectCaseTimeCaseIs0.5msg=Case0.5To0.75msg=CaseElsemsg=EndSelectMsgBoxmsgEndSub3VisualBasic10.5710.57410.5810.58Excel110.5910.592VisualBasic10.60EXCEL1000110.60Sub()SelectCaseApplication.WindowStateCasexlMaximized:MsgBoxExcelCasexlMinimized:MsgBoxExcelCasexlNormal:MsgBoxExcelSelectCaseActiveWindow.WindowStateCasexlMinimized:MsgBoxCasexlMinimized:MsgBoxCasexlMinimized:MsgBoxEndSelectEndSelectEndSub3VisualBasic10.6110.614Excel10.62510.6310.62Excel10.631~100110.6410.64210.6510.653VisualBasic10.661EXCEL4310.66Sub()Sum=0ForCount=1To100Sum=Sum+Sqr(Count)NextCountCells(3,3)=SumMsgBoxSumEndSub4VisualBasic10.675C310.6810.6710.68110.6910.692VisualBasic10.7010.70VisualBasic3/10.7110.71/Submain()CallCallCallEndSubEXCEL10001110.7210.72210.7310.7334VBA1VisualBasic210.7410.7412|VisualBasicVisualBasic3VisualBasic4110.7510.75210.761EXCEL4510.763E10.7710.774B1B210.7810.78510.7910.79610.8010.80110.8110.81210.8210.82EXCEL100013E10.8310.83410.8410.84510.8510.85110.8610.86210.8710.873VisualBasic10.8810.88Sub()Range(B1).Value=Range(B2).Value=EndSub4VisualBasic10.891EXCEL4710.9010.8910.90110.9110.91210.9210.923VisualBasic10.9310.93Sub()DimAAsSingleA=0Fori=3To12A=A+Cells(i,3)NextMsgBoxAEndSub4VisualBasic10.9410.94510.9510.95EXCEL10001110.9610.96210.9710.973VisualBasic10.9810.98Sub()DimAAsSingleA=0Fori=3To12A=A+Cells(i,3)NextMsgBoxA/10EndSub4VisualBasic10.9910.99110.10010.10021EXCEL4910.10110.1013VisualBasic10.10210.102Sub()DimaAsSinglea=0Fori=3To1000IfCells(i,3)=Thena=aElsea=a+1EndIfNextMsgBoxaEndSub4VisualBasic10.10310.103510.10410.1041Sheet1Sheet1210.10510.105EXCEL100013VisualBasic10.10610.106Sub()Sheet3.SelectEndSub4VisualBasicSheet310.10710.10710.3VBAVBA1VisualBasic10.10810.108VisualBasic210.10910.1093VisualBasic10.11010.1101VisualBasic10.11110.111210.1121EXCEL5110.112310.11310.113410.11410.1141VisualBasic10.11510.115210.11610.1163Caption10.117EXCEL1000110.1174VisualBasic10.11810.118PrivateSub_Click()ActiveWorkbook.SaveActiveWorkbook.CloseEndSub5VisualBasic/610.11910.1191VisualBasic10.12010.1202310.12110.121331EXCEL53Sheet1Sheet2Sheet33CpationSheet1Sheet2Sheet34310.12210.12253VisualBasic10.12310.123PrivateSubSheet1_Click()Sheet1.SelectEndSubPrivateSubSheet2_Click()Sheet2.SelectEndSubPrivateSubSheet3_Click()Sheet3.SelectEndSub6/10.12410.124/7310.12510.125110.12610.126210.127EXCEL1000110.1273VisualBasic10.12810.128Sub()UserForm2.ShowEndSub4VisualBasic10.12910.129510.13010.1301VisualBasic10.13110.1312310.13210.1321EXCEL55PrivateSubSheet1_Click()Sheet1.SelectUserForm2.HideEndSubPrivateSubSheet2_Click()Sheet2.SelectUserForm2.HideEndSubPrivateSubSheet3_Click()Sheet3.SelectUserForm2.HideEndSub3/10.13310.133|/41VisualBasic10.13410.134210.13510.135310.13610.1364Caption10.13710.1375EXCEL1000110.13810.138PrivateSub_Click()Sheet1.SelectCells(1,1)=TextBox1.TextUserForm1.HideEndSub6/10.13910.139/7chinabiddin.com10.14010.1408A110.14110.1411VisualBasic/10.14210.1422Caption10.1431EXCEL5710.143310.14410.144PrivateSub_Click()Sheet1.SelectRange(A1).SelectWithSelection.Interior.ColorIndex=1.Pattern=xlSolid.PatternColorIndex=xlAutomaticEndWithEndSubPrivateSub_Click()Sheet1.SelectRange(A1).SelectWithSelection.Interior.ColorIndex=3.Pattern=xlSolid.PatternColorIndex=xlAutomaticEndWithEndSub4/10.14510.145/510.14610.1466A110.14710.1471VisualBasic10.14810.1482FontEXCEL1000110.14910.149Font3…10.15010.150410.15110.1511VisualBasic10.15210.1522Caption10.15310.153310.1541EXCEL5910.154410.15510.155PrivateSub_Click()shown=MsgBox(,vbOKCancel,)EndSub5/10.15610.156/610.15710.157710.15810.1581VisualBasic10.15910.159210.160EXCEL1000110.1603Caption410.16110.161510.16210.162PrivateSubOptionButton1_Click()IfOptionButton1.EnabledThenSheet1.SelectCells(1,1)=OptionButton1.CaptionEndIfEndSubPri