VBA Macro to identify text in cell on welcome(ActiveWorksheet)(adders for project cost), activate subfunction to enter input box data(have input box that will save and return value to another workbook. I cant get anything to activate and have run out of my limited knowledge of vba coding. Your help would be appreciated.
Thanks,
Aaron
Sub AddersEnter()
If Range(E268).Value = "Array_Additional Array" Then
Call ArrayAdditionalArray
ElseIf Range("E268:E277").Value = "Array_Floating Panel" Then
Call Array_Floating_Panel
ElseIf Range("E268:E277").Value = "Array_Hazardous Metal Roof (Over 22 degrees)" Then
Call Array_Hazardous_Metal_Roof
ElseIf Range("E268:E277").Value = "Array_Hazardous Roof (Over 30 degrees)" Then
Call Array_Hazardous_Roof
ElseIf Range("E268:E277").Value = "Array_High Roof - Greater than 2 Stories" Then
Call Array_High_Roof
ElseIf Range("E268:E277").Value = "Array_Landscape Orientation" Then
Call Array_Landscape_Orientation
ElseIf Range("E268:E277").Value = "Array_Lansdscape Orientation (ET SolarBridge)" Then
Call Array_Landscape_SolarBridge
ElseIf Range("E268:E277").Value = "Array_Snap-N-Rack Edge Screen Rodent Barrier" Then
Call Array_Rodent_Barrier
ElseIf Range("E268:E277").Value = "BOS_Additional Inverters Subpanel" Then
Call BOS_Additional_Inverter_Subpanel
ElseIf Range("E268:E277").Value = "BOS_SMA Sunny Boy TL-US Secure Power Supply" Then
Call BOS_SMA_SunnyBoy_SecurePowerSupply
ElseIf Range("E268:E277").Value = "BOS_SolarBridge Additional Equipment" Then
Call BOS_SolarBridge_AdditionalEquipment
ElseIf Range("E268:E277").Value = "Install_Attic/Crawlspace Run" Then
Call Install_Attic_Crawlspace
ElseIf Range("E268:E277").Value = "Install_Conduit Painting - Greater than 70'" Then
Call Install_Conduit_Painting_Greater_70
ElseIf Range("EE268:E277").Value = "Install_Long Conduit Run - Greater than 70'" Then
Call Install_Long_Conduit_Run
ElseIf Range("E268:E277").Value = "Install_Mileage/Travel" Then
Call Install_MileageTravel
ElseIf Range("E268:E277").Value = "Install_Plumbing Roof Vent - Relocate" Then
Call Install_PlumbingVent
ElseIf Range("E268:E277").Value = "Install_Trenching" Then
Call Install_Trenching
ElseIf Range("E268:E277").Value = "Racking_AeroCompact Ballast Blocks(35lbs)" Then
Call Racking_AeroCompact_Ballast_Blocks
ElseIf Range("E268:E277").Value = "Racking_Ground Mount Additional Array" Then
Call Racking_GroundMount_Additional_Array
ElseIf Range("E268:E277").Value = "Racking_Metal Roof w/ Penetrations" Then
Call Racking_MetalRoof_Penetrations
ElseIf Range("E268:E277").Value = "Service_Custom Upgrade" Then
Call Service_Custom_Upgrade
ElseIf Range("E268:E277").Value = "Service_Main Breaker Kit(Custom)" Then
Call Service_Main_Breaker_Kit_Custom
End If
End Sub
Sub ArrayAdditionalArray()
Dim Quantity As String
Quantity = InputBox("Please enter the quantity of this adder")
With Sheets("Adders")
.Range("D5").Value = strMyIPBMsg
End With
End Sub
Sub Array_Floating_Panel()
Call QuantityCommand
Worksheets("Adders").Range("D7").Value = Quantity
End Sub
Sub Array_Hazardous_Metal_Roof()
Call QuantityCommand
Worksheets("Adders").Range("D8").Value = Quantity
End Sub
Thanks,
Aaron
Sub AddersEnter()
If Range(E268).Value = "Array_Additional Array" Then
Call ArrayAdditionalArray
ElseIf Range("E268:E277").Value = "Array_Floating Panel" Then
Call Array_Floating_Panel
ElseIf Range("E268:E277").Value = "Array_Hazardous Metal Roof (Over 22 degrees)" Then
Call Array_Hazardous_Metal_Roof
ElseIf Range("E268:E277").Value = "Array_Hazardous Roof (Over 30 degrees)" Then
Call Array_Hazardous_Roof
ElseIf Range("E268:E277").Value = "Array_High Roof - Greater than 2 Stories" Then
Call Array_High_Roof
ElseIf Range("E268:E277").Value = "Array_Landscape Orientation" Then
Call Array_Landscape_Orientation
ElseIf Range("E268:E277").Value = "Array_Lansdscape Orientation (ET SolarBridge)" Then
Call Array_Landscape_SolarBridge
ElseIf Range("E268:E277").Value = "Array_Snap-N-Rack Edge Screen Rodent Barrier" Then
Call Array_Rodent_Barrier
ElseIf Range("E268:E277").Value = "BOS_Additional Inverters Subpanel" Then
Call BOS_Additional_Inverter_Subpanel
ElseIf Range("E268:E277").Value = "BOS_SMA Sunny Boy TL-US Secure Power Supply" Then
Call BOS_SMA_SunnyBoy_SecurePowerSupply
ElseIf Range("E268:E277").Value = "BOS_SolarBridge Additional Equipment" Then
Call BOS_SolarBridge_AdditionalEquipment
ElseIf Range("E268:E277").Value = "Install_Attic/Crawlspace Run" Then
Call Install_Attic_Crawlspace
ElseIf Range("E268:E277").Value = "Install_Conduit Painting - Greater than 70'" Then
Call Install_Conduit_Painting_Greater_70
ElseIf Range("EE268:E277").Value = "Install_Long Conduit Run - Greater than 70'" Then
Call Install_Long_Conduit_Run
ElseIf Range("E268:E277").Value = "Install_Mileage/Travel" Then
Call Install_MileageTravel
ElseIf Range("E268:E277").Value = "Install_Plumbing Roof Vent - Relocate" Then
Call Install_PlumbingVent
ElseIf Range("E268:E277").Value = "Install_Trenching" Then
Call Install_Trenching
ElseIf Range("E268:E277").Value = "Racking_AeroCompact Ballast Blocks(35lbs)" Then
Call Racking_AeroCompact_Ballast_Blocks
ElseIf Range("E268:E277").Value = "Racking_Ground Mount Additional Array" Then
Call Racking_GroundMount_Additional_Array
ElseIf Range("E268:E277").Value = "Racking_Metal Roof w/ Penetrations" Then
Call Racking_MetalRoof_Penetrations
ElseIf Range("E268:E277").Value = "Service_Custom Upgrade" Then
Call Service_Custom_Upgrade
ElseIf Range("E268:E277").Value = "Service_Main Breaker Kit(Custom)" Then
Call Service_Main_Breaker_Kit_Custom
End If
End Sub
Sub ArrayAdditionalArray()
Dim Quantity As String
Quantity = InputBox("Please enter the quantity of this adder")
With Sheets("Adders")
.Range("D5").Value = strMyIPBMsg
End With
End Sub
Sub Array_Floating_Panel()
Call QuantityCommand
Worksheets("Adders").Range("D7").Value = Quantity
End Sub
Sub Array_Hazardous_Metal_Roof()
Call QuantityCommand
Worksheets("Adders").Range("D8").Value = Quantity
End Sub