ExcelHome技术论坛

 找回密码
 免费注册

QQ登录

只需一步,快速开始

快捷登录

搜索
EH技术汇-专业的职场技能充电站 妙哉!函数段子手趣味讲函数 Excel服务器-会Excel,做管理系统 效率神器,一键搞定繁琐工作
HR薪酬管理数字化实战 Excel 2021函数公式学习大典 Excel数据透视表实战秘技 打造核心竞争力的职场宝典
让更多数据处理,一键完成 数据工作者的案头书 免费直播课集锦 ExcelHome出品 - VBA代码宝免费下载
用ChatGPT与VBA一键搞定Excel WPS表格从入门到精通 Excel VBA经典代码实践指南
查看: 467|回复: 0

帮忙翻一下呗,真没学过,或者有什么可以帮助翻译的软件,谢谢大家

[复制链接]

TA的精华主题

TA的得分主题

发表于 2021-6-19 10:59 | 显示全部楼层 |阅读模式
本帖最后由 renzhife 于 2021-6-19 11:01 编辑

Sub 资料打印()
    Dim arow As Integer, i As Integer, brow As Integer, crow As Integer, drow As Integer, erow As Integer, mrow As Integer, fil1 As String, fil2 As String, rng As Range, nrow As Integer
    Application.ScreenUpdating = False
    Sheets("梁场台账").Select
    arow = Range("A1").CurrentRegion.Rows.Count
    Set rng = Range(Cells(4, 1), Cells(arow, 17))
    If Not rng.Find("") Is Nothing Then
        MsgBox "警告:参数单元格有空值,请参数全部输入后使用!" & vbCrLf & " " & vbCrLf & "                                                  开发者:贾彬" & vbCrLf & "                                                       版本号Trial1.0", Title:="预制梁场资料助手"
    Set rng = Nothing
    Else
    Sheets("计算").Visible = True
    Sheets("1").Visible = True
    Sheets("2-1").Visible = True
    Sheets("2-2").Visible = True
    Sheets("2-3").Visible = True
    Sheets("2-4").Visible = True
    Sheets("2-5").Visible = True
    Sheets("2-6").Visible = True
    Sheets("2-7").Visible = True
    Sheets("2-8").Visible = True
    Sheets("2-9").Visible = True
    Sheets("2-10").Visible = True
    Sheets("2-11").Visible = True
    Sheets("2-12").Visible = True
    Sheets("3").Visible = True
    Sheets("4").Visible = True
    Sheets("5").Visible = True
    Sheets("6").Visible = True
    Sheets("7").Visible = True
    Sheets("8").Visible = True
    Sheets("9").Visible = True
    Sheets("10").Visible = True
    Sheets("11").Visible = True
    Sheets("12").Visible = True
    Sheets("13").Visible = True
    Sheets("14").Visible = True
    Sheets("15-1").Visible = True
    Sheets("15-2").Visible = True
    Sheets("15-3").Visible = True
    Sheets("15-4").Visible = True
    Sheets("15-5").Visible = True
    Sheets("15-6").Visible = True
    Sheets("15-7").Visible = True
    Sheets("16").Visible = True
    Sheets("17").Visible = True
    Sheets("18").Visible = True
    Sheets("19").Visible = True
    Sheets("梁场台账").Select
    For i = 4 To arow
    Range(Cells(i, 1), Cells(i, 20)).Select
    Selection.Copy
    Sheets("计算").Select
    Range("A2").Select
    ActiveSheet.Paste
    Sheets("1").Select
    ActiveWindow.SelectedSheets.PrintOut Copies:=1, Collate:=True, _
        IgnorePrintAreas:=False
    Sheets("2-1").Select
    ActiveWindow.SelectedSheets.PrintOut Copies:=1, Collate:=True, _
        IgnorePrintAreas:=False
    Sheets("2-2").Select
    ActiveWindow.SelectedSheets.PrintOut Copies:=1, Collate:=True, _
        IgnorePrintAreas:=False
    Sheets("2-3").Select
    ActiveWindow.SelectedSheets.PrintOut Copies:=1, Collate:=True, _
        IgnorePrintAreas:=False
    Sheets("2-4").Select
    ActiveWindow.SelectedSheets.PrintOut Copies:=1, Collate:=True, _
        IgnorePrintAreas:=False
    Sheets("2-5").Select
    ActiveWindow.SelectedSheets.PrintOut Copies:=1, Collate:=True, _
        IgnorePrintAreas:=False
    Sheets("2-6").Select
    ActiveWindow.SelectedSheets.PrintOut Copies:=1, Collate:=True, _
        IgnorePrintAreas:=False
    Sheets("2-7").Select
    ActiveWindow.SelectedSheets.PrintOut Copies:=1, Collate:=True, _
        IgnorePrintAreas:=False
    Sheets("2-8").Select
    ActiveWindow.SelectedSheets.PrintOut Copies:=1, Collate:=True, _
        IgnorePrintAreas:=False
    Sheets("2-9").Select
    ActiveWindow.SelectedSheets.PrintOut Copies:=1, Collate:=True, _
        IgnorePrintAreas:=False
    Sheets("2-10").Select
    ActiveWindow.SelectedSheets.PrintOut Copies:=1, Collate:=True, _
        IgnorePrintAreas:=False
    Sheets("2-11").Select
    ActiveWindow.SelectedSheets.PrintOut Copies:=1, Collate:=True, _
        IgnorePrintAreas:=False
    Sheets("2-12").Select
    ActiveWindow.SelectedSheets.PrintOut Copies:=1, Collate:=True, _
        IgnorePrintAreas:=False
    Sheets("3").Select
    ActiveWindow.SelectedSheets.PrintOut Copies:=1, Collate:=True, _
        IgnorePrintAreas:=False
    Sheets("4").Select
    ActiveWindow.SelectedSheets.PrintOut Copies:=1, Collate:=True, _
        IgnorePrintAreas:=False
    Sheets("5").Select
    ActiveWindow.SelectedSheets.PrintOut Copies:=1, Collate:=True, _
        IgnorePrintAreas:=False
    Sheets("6").Select
    ActiveWindow.SelectedSheets.PrintOut Copies:=1, Collate:=True, _
        IgnorePrintAreas:=False
    Sheets("7").Select
    ActiveWindow.SelectedSheets.PrintOut Copies:=1, Collate:=True, _
        IgnorePrintAreas:=False
    Sheets("8").Select
    ActiveWindow.SelectedSheets.PrintOut Copies:=1, Collate:=True, _
        IgnorePrintAreas:=False
    Sheets("9").Select
    ActiveWindow.SelectedSheets.PrintOut Copies:=1, Collate:=True, _
        IgnorePrintAreas:=False
    Sheets("10").Select
    ActiveWindow.SelectedSheets.PrintOut Copies:=1, Collate:=True, _
        IgnorePrintAreas:=False
    Sheets("11").Select
    ActiveWindow.SelectedSheets.PrintOut Copies:=1, Collate:=True, _
        IgnorePrintAreas:=False
    Sheets("12").Select
    ActiveWindow.SelectedSheets.PrintOut Copies:=1, Collate:=True, _
        IgnorePrintAreas:=False
    Sheets("13").Select
    ActiveWindow.SelectedSheets.PrintOut Copies:=1, Collate:=True, _
        IgnorePrintAreas:=False
    Sheets("14").Select
    ActiveWindow.SelectedSheets.PrintOut Copies:=1, Collate:=True, _
        IgnorePrintAreas:=False
    Sheets("15-1").Select
    ActiveWindow.SelectedSheets.PrintOut Copies:=1, Collate:=True, _
        IgnorePrintAreas:=False
    Sheets("15-2").Select
    ActiveWindow.SelectedSheets.PrintOut Copies:=1, Collate:=True, _
        IgnorePrintAreas:=False
    Sheets("15-3").Select
    ActiveWindow.SelectedSheets.PrintOut Copies:=1, Collate:=True, _
        IgnorePrintAreas:=False
    Sheets("15-4").Select
    ActiveWindow.SelectedSheets.PrintOut Copies:=1, Collate:=True, _
        IgnorePrintAreas:=False
    Sheets("15-5").Select
    ActiveWindow.SelectedSheets.PrintOut Copies:=1, Collate:=True, _
        IgnorePrintAreas:=False
    Sheets("15-6").Select
    ActiveWindow.SelectedSheets.PrintOut Copies:=1, Collate:=True, _
        IgnorePrintAreas:=False
    Sheets("15-7").Select
    ActiveWindow.SelectedSheets.PrintOut Copies:=1, Collate:=True, _
        IgnorePrintAreas:=False
    Sheets("16").Select
    ActiveWindow.SelectedSheets.PrintOut Copies:=1, Collate:=True, _
        IgnorePrintAreas:=False
    Sheets("17").Select
    ActiveWindow.SelectedSheets.PrintOut Copies:=1, Collate:=True, _
        IgnorePrintAreas:=False
    Sheets("18").Select
    ActiveWindow.SelectedSheets.PrintOut Copies:=1, Collate:=True, _
        IgnorePrintAreas:=False
    Sheets("19").Select
    ActiveWindow.SelectedSheets.PrintOut Copies:=1, Collate:=True, _
        IgnorePrintAreas:=False
    Sheets("梁场台账").Select
    Next
    Sheets("计算").Visible = False
    Sheets("1").Visible = False
    Sheets("2-1").Visible = False
    Sheets("2-2").Visible = False
    Sheets("2-3").Visible = False
    Sheets("2-4").Visible = False
    Sheets("2-5").Visible = False
    Sheets("2-6").Visible = False
    Sheets("2-7").Visible = False
    Sheets("2-8").Visible = False
    Sheets("2-9").Visible = False
    Sheets("2-10").Visible = False
    Sheets("2-11").Visible = False
    Sheets("2-12").Visible = False
    Sheets("3").Visible = False
    Sheets("4").Visible = False
    Sheets("5").Visible = False
    Sheets("6").Visible = False
    Sheets("7").Visible = False
    Sheets("8").Visible = False
    Sheets("9").Visible = False
    Sheets("10").Visible = False
    Sheets("11").Visible = False
    Sheets("12").Visible = False
    Sheets("13").Visible = False
    Sheets("14").Visible = False
    Sheets("15-1").Visible = False
    Sheets("15-2").Visible = False
    Sheets("15-3").Visible = False
    Sheets("15-4").Visible = False
    Sheets("15-5").Visible = False
    Sheets("15-6").Visible = False
    Sheets("15-7").Visible = False
    Sheets("16").Visible = False
    Sheets("17").Visible = False
    Sheets("18").Visible = False
    Sheets("19").Visible = False
    End If
    Application.ScreenUpdating = True
    MsgBox "    电子版资料已发送至默认打印机打印中,请耐心等待。" & vbCrLf & " " & vbCrLf & "                                                   开发者:贾彬" & vbCrLf & "                                                      版本号Trial1.0", Title:="预制梁场资料助手"
End Sub

您需要登录后才可以回帖 登录 | 免费注册

本版积分规则

手机版|关于我们|联系我们|ExcelHome

GMT+8, 2024-11-23 06:40 , Processed in 0.035439 second(s), 10 queries , Gzip On, MemCache On.

Powered by Discuz! X3.4

© 1999-2023 Wooffice Inc.

沪公网安备 31011702000001号 沪ICP备11019229号-2

本论坛言论纯属发表者个人意见,任何违反国家相关法律的言论,本站将协助国家相关部门追究发言者责任!     本站特聘法律顾问:李志群律师

快速回复 返回顶部 返回列表