Fernando14
New Member
- Joined
- Jun 29, 2021
- Messages
- 12
- Office Version
- 2019
- Platform
- Windows
I had this macro working before, but for whatever reason it no longer calls the desired macro. I made changes to the other macro, but none to the "trigger" macro. Here is the trigger macro :
Here is the macro that gets triggered if it helps:
Excel Formula:
Option Explicit
Public FLAGNUM As Integer
Sub worksheet_change(ByVal Target As Range)
Set Target = Range("B13")
FLAGNUM = Target.Value
If Target.Value > 0 Then
Call Flags
End If
End Sub
Here is the macro that gets triggered if it helps:
Excel Formula:
Option Explicit
Public FLAGNUM As Integer
Public FLAGSW() As Double
Public FLAGSL() As Double
Public FLAGSNORP() As String
Sub Flags()
'
' Flags Macro
'
ReDim FLAGSW(FLAGNUM)
ReDim FLAGSL(FLAGNUM)
ReDim FLAGSNORP(FLAGNUM)
Dim i As Integer
For i = 1 To FLAGNUM
FLAGSW(i) = InputBox("What is flag " & i & "'s width?")
FLAGSL(i) = InputBox("What is flag " & i & "'s length?")
FLAGSNORP(i) = InputBox("Is flag " & i & " nylon or polyester? (Enter N or P)")
Next i
End Sub