2025年2月13日星期四

VBA code - CombineWorksheets

 

how to combine all work sheets into one sheets in excel

VBA code

Sub CombineWorksheets() Dim ws As Worksheet Dim destWs As Worksheet Dim lastRow As Long Dim copyRange As Range ' Create a new worksheet for combined data Set destWs = ThisWorkbook.Sheets.Add(After:=ThisWorkbook.Sheets(ThisWorkbook.Sheets.Count)) destWs.Name = "Combined" ' Loop through each worksheet in the workbook For Each ws In ThisWorkbook.Worksheets If ws.Name <> destWs.Name Then lastRow = destWs.Cells(destWs.Rows.Count, 1).End(xlUp).Row + 1 Set copyRange = ws.UsedRange copyRange.Copy destWs.Cells(lastRow, 1) End If Next ws End Sub

2025年2月9日星期日

邻居的树

 Neighbour Tress

https://lec.nsw.gov.au/types-of-cases/class-2---tree-disputes-and-local-government-appeals/development-application-appeals/how-to-start-an-appeal.html

https://lec.nsw.gov.au/your-legal-problem-is-about---/trees-and-hedges.html


https://www.planningportal.nsw.gov.au/spatialviewer/#/find-a-property/address