



全文预览已结束
下载本文档
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
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. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 平阳县全员安全培训课件
- 阿里事业单位笔试真题2025
- 2025年阿里事业单位真题
- 央视安全培训课件
- 电商领域知识产权保护与治理报告:2025年行业发展趋势与知识产权战略
- 2025年中医药现代化进程中意大利市场拓展策略研究
- 工业园安全知识培训课件
- 平移或旋转拼图课件
- 农发行铁岭市西丰县2025秋招笔试性格测试题专练及答案
- 2025年风电叶片回收处理技术创新应用与产业布局优化报告
- 转账合约协议书范本
- 家具行业的跨境电商发展探讨试题及答案
- 协调服务协议合同标准文本
- 《新能源技术与应用》课件
- 肾错构瘤知识课件
- 合同账户变更协议
- ICU发热与体温管理课件
- 肺癌护理查房新
- 2025-2030全球及中国老年护理服务行业市场现状供需分析及市场深度研究发展前景及规划可行性分析研究报告
- 学生心理健康一生一策档案表
- 跌落机操作规程
评论
0/150
提交评论