Skip to content

Instantly share code, notes, and snippets.

@ebibibi
Created November 2, 2020 07:27
Show Gist options
  • Save ebibibi/2ae683dfa59736f31af6f14e70d51803 to your computer and use it in GitHub Desktop.
Save ebibibi/2ae683dfa59736f31af6f14e70d51803 to your computer and use it in GitHub Desktop.
Sub 部署名変更bySubscriptionGUID(ByVal guid As String, ByVal newDepartment As String)
Dim detailTable
Set detailTable = Worksheets("データソースfromAzure(detail)").ListObjects("detail")
For i = 1 To detailTable.ListRows.Count
If detailTable.ListColumns("サブスクリプション GUID (SubscriptionGuid)").DataBodyRange(i) = guid Then
detailTable.ListColumns("部署名 (Department Name)").DataBodyRange(i).Value = newDepartment
End If
Next
End Sub
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment