Cisco ACI 生成Postman CSV 脚本场景
Cisco ACI 生成Postman CSV 脚本场景
1> 根据H列的数字,向下按指定Step 填充
以下为按72为step进行递增
=“eth1/”&INDIRECT(“h”&INT((ROW(A1)-1)/72+1))
2> excel vba将选中区域向下复制指定次数
Sub CopySelection()
Dim numCopies As Integer
Dim selectedRange As Range
Dim i As Integer
’ Prompt the user to enter a number
numCopies = Application.InputBox(“Enter the number of times to copy the selection:”, Type:=1)
’ Check if a valid number is entered
If numCopies <= 0 Then
MsgBox “Please enter a valid positive number.”, vbExclamation
Exit Sub
End If
’ Store the selected range
Set selectedRange = Selection
’ Copy the selection downwards the specified number of times
For i = 1 To numCopies
selectedRange.Offset(i * selectedRange.Rows.Count, 0).Value = selectedRange.Value
Next i
MsgBox “Selected range copied " & numCopies & " times.”, vbInformation
End Sub