您的位置:首页 > 游戏 > 游戏 > 免费用的云服务器_哈尔滨建站系统点击查看_万网app下载_国际军事新闻今日头条

免费用的云服务器_哈尔滨建站系统点击查看_万网app下载_国际军事新闻今日头条

2025/5/15 14:28:06 来源:https://blog.csdn.net/hmywillstronger/article/details/145580031  浏览:    关键词:免费用的云服务器_哈尔滨建站系统点击查看_万网app下载_国际军事新闻今日头条
免费用的云服务器_哈尔滨建站系统点击查看_万网app下载_国际军事新闻今日头条

【EXCEL】【VBA】处理GI Log获得Surf格式的CONTOUR DATA

    • data source1: BH coordination table
    • data source2:BH layer table
    • process 1:Collect BH List To Layer Table
    • process 2:match Reduced Level from "Layer"+"BH"

data source1: BH coordination table

data source2:BH layer table

image-20250211221032901

process 1:Collect BH List To Layer Table

Sub FindBHForAllLayers()Dim ws As WorksheetDim wsTarget As WorksheetDim resultRow As LongDim col As Long, targetCol As LongDim lastCol As LongDim layerName As StringSet ws = ThisWorkbook.Sheets("Layer summary")Set wsTarget = ThisWorkbook.ActiveSheetlastCol = ws.Cells(1, ws.Columns.Count).End(xlToLeft).Column' 清除之前的结果wsTarget.Range("C2:ZZ50").ClearContents' 遍历每个可能的layer起始列(B,G,L...)For targetCol = 2 To lastCol Step 5layerName = wsTarget.Cells(1, targetCol).ValueIf Not IsEmpty(layerName) ThenresultRow = 2 '每个layer从第2行开始填写' 在Layer summary中搜索这个layerFor col = 1 To lastCol Step 5If Not IsEmpty(ws.Cells(1, col)) Then' 检查该组中的Description列是否包含当前layerDim rng As RangeSet rng = ws.Range(ws.Cells(1, col + 3), ws.Cells(50, col + 3))If Not IsError(Application.Match(layerName, rng, 0)) Then' 写入到layer名称的右边一列wsTarget.Cells(resultRow, targetCol + 1).Value = ws.Cells(1, col).ValueresultRow = resultRow + 1End IfEnd IfNext colEnd IfNext targetCol
End Sub

版权声明:

本网仅为发布的内容提供存储空间,不对发表、转载的内容提供任何形式的保证。凡本网注明“来源:XXX网络”的作品,均转载自其它媒体,著作权归作者所有,商业转载请联系作者获得授权,非商业转载请注明出处。

我们尊重并感谢每一位作者,均已注明文章来源和作者。如因作品内容、版权或其它问题,请及时与我们联系,联系邮箱:809451989@qq.com,投稿邮箱:809451989@qq.com