かなり基本的なVBAを使用していますが、SAP \ BPC、EPMアドイン。実行時エラー '1004':オブジェクト_ワークシートのメソッド範囲が失敗しました。EPM BPC VBA
エラーセクション:
For Each CurCell In Input_Sheet.Range(Input_Sheet.Range("SPREAD_COLUMN"), Input_Sheet.Range("SPREAD_COLUMN").Offset(Input_Sheet.Cells.SpecialCells(xlCellTypeLastCell).Row, 0))
コード: 以下のコード見つけてください
Private Function AFTER_REFRESH()
' Apply the in-cell drop-downs (validations) for the spreads
Dim CurCell As Range
Application.EnableEvents = False
Application.ScreenUpdating = False
UnProtect_Sheet
For Each CurCell In Input_Sheet.Range(Input_Sheet.Range("SPREAD_COLUMN"), Input_Sheet.Range("SPREAD_COLUMN").Offset(Input_Sheet.Cells.SpecialCells(xlCellTypeLastCell).Row, 0))
If Not CurCell.Font.Bold Then
With CurCell.Validation ' apply validation (drop-down) to spread column
.Delete
.Add Type:=xlValidateList, AlertStyle:=xlValidAlertStop, Operator:=xlBetween, Formula1:="=SPREAD_METHODS"
.InCellDropdown = True
End With
End If
Next
If LockWorkbook Then
Protect_Sheet
End If
Application.EnableEvents = True
Application.ScreenUpdating = True
End Function
をあなたの助けとよろしくお願いします。