I am trying to have the user select a certain range (input, output, or p), and copy their selected cells into a new worksheet. I already have the latter half, but am having trouble creating a function to do the first part.
In short, if the user wants to see input, they will select the input "option", then my code will highlight only cells C8 through F8, and copy into a new worksheet. If they choose output, then my code will highlight only cells H8 through K8, and so on. I am new to VBA!
I have tried using an If statement and looked briefly into Case.
Dim myRange As Range
Dim inputRange As Range
Dim outputRange As Range
Dim pRange As Range
Set inputRange = Range(Range("C8"), Range("F8"))
Set outputRange = Range(Range("H8"), Range("K8"))
Set pRange = Range(Range("M8"), Range("P8"))