全文预览已结束
下载本文档
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
Public d As StringPublic l As String Public ld As StringPublic f As StringPublic fx As StringPublic jx As StringPublic zd1 As StringPublic zd2 As StringPrivate Sub CommandButton1_Click()d = TextBox1.Textl = TextBox3.Textld = TextBox2.Textf = TextBox4.TextListBox1.AddItem d & & ld & & l & & f, ListBox1.ListCountSheet1.Cells(ListBox1.ListCount, 1) = dSheet1.Cells(ListBox1.ListCount, 2) = ldSheet1.Cells(ListBox1.ListCount, 3) = lSheet1.Cells(ListBox1.ListCount, 4) = fTextBox1.Text = TextBox2.Text = TextBox3.Text = TextBox4.Text = End SubPrivate Sub CommandButton2_Click()If ListBox1.ListIndex = -1 ThenMsgBox (没有可删除的数据!)ElseIf ListBox1.ListCount 0 And ListBox1.ListIndex ListBox1.ListCount - 1 ThenListBox1.RemoveItem ListBox1.ListIndexSheet1.Rows(ListBox1.ListIndex + 1).DeleteElseIf ListBox1.ListIndex = ListBox1.ListCount - 1 ThenListBox1.RemoveItem ListBox1.ListIndexSheet1.Rows(ListBox1.ListIndex + 2).ClearEnd IfEnd SubPrivate Sub CommandButton3_Click()ListBox1.ClearSheet1.Cells.ClearTextBox1.Text = TextBox2.Text = TextBox3.Text = TextBox4.Text = End SubPrivate Sub CommandButton4_Click()TextBox4.Text = 支点End SubPrivate Sub CommandButton5_Click()d = TextBox1.Textl = TextBox3.Textld = TextBox2.Textf = TextBox4.TextListBox1.AddItem d & & ld & & l & & f, ListBox1.ListIndex + 1TextBox1.Text = TextBox2.Text = TextBox3.Text = TextBox4.Text = Sheet1.Rows(ListBox1.ListIndex + 1).InsertSheet1.Cells(ListBox1.ListIndex + 2, 1) = dSheet1.Cells(ListBox1.ListIndex + 2, 2) = ldSheet1.Cells(ListBox1.ListIndex + 2, 3) = lSheet1.Cells(ListBox1.ListIndex + 2, 4) = fEnd SubPrivate Sub CommandButton6_Click() 计算每个点的坐标值并写入sheet1Sheet1.Cells(1, 5) = Val(Sheet1.Cells(1, 3).Text) 作用点坐标Sheet1.Cells(1, 6) = Val(Sheet1.Cells(1, 2).Text) 轴肩坐标Dim i As Integeri = 2Do Until Sheet1.Cells(i, 1) = nilSheet1.Cells(i, 5) = Val(Sheet1.Cells(i - 1, 6).Text) + Val(Sheet1.Cells(i, 3).Text)Sheet1.Cells(i, 6) = Val(Sheet1.Cells(i - 1, 6).Text) + Val(Sheet1.Cells(i, 2).Text)i = i + 1LoopDim zd As StringDim i1 As Integer 找出支点位置i1 = 1Do Until Sheet1.Cells(i1, 1) = nilIf Sheet1.Cells(i1, 4) = 支点 Thenzd = zd & i1 & ,Else: zd = zdEnd Ifi1 = i1 + 1Loopzd1 = Left(zd, Val(InStr(zd, ,) - 1) 得出支点1坐标zd2 = Mid(zd, Val(InStr(zd, ,) + 1), Val(Len(zd) - Val(InStr(zd, ,) - 1) 得出支点2坐标Dim i2 As Integeri2 = 1 对支点2求矩Do Until Sheet1.Cells(i2, 1) = nilSheet1.Cells(i2, 7) = (Val(Sheet1.Cells(i2, 5) - Val(Sheet1.Cells(Val(zd2), 5) * Val(Sheet1.Cells(i2, 4)i2 = i2 + 1Loop得出支反力Dim ra As DoubleDim rb As DoubleDim Mzf As DoubleDim Fzf As DoubleDim i3 As Integeri3 = 2Mzf = Val(Sheet1.Cells(1, 7)Do Until Sheet1.Cells(i3, 1) = nilMzf = Mzf + Val(Sheet1.Cells(i3, 7)i3 = i3 + 1Loopra = Mzf / (Val(Sheet1.Cells(zd1, 5) - Val(Sheet1.Cells(zd2, 5)Dim I4 As IntegerI4 = 2Fzf = Val(Sheet1.Cells(1, 4)Fzf = Val(Sheet1.Cel
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 2026年家常用电考试题及答案
- 2025年职业道德试题和答案
- 2026年化工复合材料行业分析报告及未来发展趋势报告
- 2026年公务员考试公共基础知识压轴题库及参考答案
- 2026年杯垫行业分析报告及未来发展趋势报告
- 重庆市黔江区辅警考试题《公安基础知识》综合能力试题库(附答案)
- 2025年投诉处理试题及答案
- 2026年中考体育文考试题及答案
- 2026年心理咨询师一级考试试题及答案
- 2026年国际情商测试题及答案
- 2026年山东日照市高三二模高考政治试卷试题(含答案详解)
- 2026年广东省高三二模高考物理模拟试卷试题(含答案详解)
- 2026中国地方政府债务风险化解方案分析报告
- 2026湖南湘西州农商银行系统员工招聘41人笔试参考题库及答案解析
- 2026年学习教育畏难避责、斗争精神不强问题查摆材料
- 新教材人教版八年级数学下学期期中测试卷
- 2025-2026学年山东省德州市宁津县部分学校青岛版五年级下学期期中数学检测试卷【附答案】
- 测绘地理信息安全保密管理课件
- 广东省深圳市福田区2026年中考二模数学试卷附答案
- 陪诊培训课件模板
- 【初中化学】中国化学家-李寿恒
评论
0/150
提交评论