The analysis of subway subsidence observation data using VBA programming process

Source: Internet
Author: User

The analysis of subway subsidence observation data using VBA programming process

When you're tired of watching the day, you're back looking at hundreds of measurements and reporting. If it's a 35-page report, it's okay to say that if it's a 2000-point report, it will have about 70 pages of reports on a page of paper 30. As the force of the surveyors, but also more bitter force is no settlement data analysis software surveyors, but also more difficult to have settlement data processing analysis software, but does not support the local supervision requirements of the report format of the surveyor, whether the only manual to do so many daily statements? Think about the weekly and monthly reports!!! How horrible! As an experienced, I would like to put my own experience and VBA proposed to let you explore. Time is compact and no more articles are reviewed. If there is a mistake, please ask to correct the code. Accessories Please practice for nine days. The code is as follows

SUB Macro 1 ()

' Macro 1 macro

' Shortcut key: Ctrl+u

Cells.select
Selection.Copy
Sheets.add After:=sheets (Sheets.count)
Activesheet.name = year (now ()) & '-' & Month (Now ()) & '-' & Day (now ())
Cells.select
Activesheet.paste
[D7:h7] = "=now ()"
Range ("D9:d36"). Select
Selection.Copy
Range ("C9"). Select
Selection.pastespecial paste:=xlpastevalues, Operation:=xlnone, Skipblanks _
: =false, Transpose:=false
' There is also the calculation interval date did not do Oh!!!
Range ("D61"). Select
Range ("D61:d88"). Select
Application.cutcopymode = False
Selection.Copy
Range ("C61"). Select
Selection.pastespecial paste:=xlpastevalues, Operation:=xlnone, Skipblanks _
: =false, Transpose:=false
Range ("D113"). Select
Range ("d113:d140"). Select
Application.cutcopymode = False
Selection.Copy
Range ("C113"). Select
Selection.pastespecial paste:=xlpastevalues, Operation:=xlnone, Skipblanks _
: =false, Transpose:=false
Range ("D165"). Select
Range ("d165:d192"). Select
Application.cutcopymode = False
Selection.Copy

Range ("C165"). Select
Selection.pastespecial paste:=xlpastevalues, Operation:=xlnone, Skipblanks _
: =false, Transpose:=false
Range ("D217"). Select
Range ("d217:d244"). Select
Application.cutcopymode = False
Selection.Copy
Range ("C217"). Select
Selection.pastespecial paste:=xlpastevalues, Operation:=xlnone, Skipblanks _
: =false, Transpose:=false
Range ("D269"). Select
Range ("d269:d296"). Select
Application.cutcopymode = False
Selection.Copy
Range ("C269"). Select
Selection.pastespecial paste:=xlpastevalues, Operation:=xlnone, Skipblanks _
: =false, Transpose:=false
Range ("D321"). Select
Range ("d321:d349"). Select
Application.cutcopymode = False
Selection.Copy
Range ("C321"). Select
Selection.pastespecial paste:=xlpastevalues, Operation:=xlnone, Skipblanks _
: =false, Transpose:=false
Range ("D373"). Select
Range ("d373:d399"). Select
Application.cutcopymode = False
Selection.Copy
Range ("C373"). Select
Selection.pastespecial paste:=xlpastevalues, Operation:=xlnone, Skipblanks _
: =false, Transpose:=false
Range ("D425"). Select
Range ("d425:d451"). Select
Application.cutcopymode = False
Selection.Copy
Range ("C425"). Select
Selection.pastespecial paste:=xlpastevalues, Operation:=xlnone, Skipblanks _
: =false, Transpose:=false
Range ("D477"). Select
Range ("d477:d502"). Select
Application.cutcopymode = False
Selection.Copy
Range ("C477"). Select
Selection.pastespecial paste:=xlpastevalues, Operation:=xlnone, Skipblanks _
: =false, Transpose:=false
Range ("d529:d556"). Select
Application.cutcopymode = False
Selection.Copy
Range ("C529"). Select
Selection.pastespecial paste:=xlpastevalues, Operation:=xlnone, Skipblanks _
: =false, Transpose:=false
Range ("d581:d609"). Select
Application.cutcopymode = False
Selection.Copy
Range ("C581"). Select
Selection.pastespecial paste:=xlpastevalues, Operation:=xlnone, Skipblanks _
: =false, Transpose:=false
Range ("D633"). Select
Range ("d633:d665"). Select
Application.cutcopymode = False
Selection.Copy
Range ("C633"). Select
Selection.pastespecial paste:=xlpastevalues, Operation:=xlnone, Skipblanks _
: =false, Transpose:=false
Range ("D7:h7"). Select
Application.cutcopymode = False
Selection.Copy
Range ("D7:h7"). Select
Selection.pastespecial paste:=xlpastevalues, Operation:=xlnone, Skipblanks _
: =false, Transpose:=false
Columns ("P:q"). Select
Application.cutcopymode = False
Selection.clearcontents

End Sub

Practice attachment and how to use it please contact nine days

The analysis of subway subsidence observation data using VBA programming process

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.