hamistasty
Board Regular
- Joined
- May 17, 2011
- Messages
- 208
I want to be able to select (click with my mouse) a cell in column A and depending on that cell's value will carry out a case. I'm completely lost, and I'm not sure if this is how ActiveCell works. ??
Code:
Sub FICspecific()
'MAKES BLAH A STRING
Dim blah As String
'IN SCHEDULE TAB
With Sheets("Schedule")
' IN COLUMN A AND ALL CELLS THAT ARE NOT BLANK
For I = 7 To .Range("A" & Rows.Count).End(xlUp).Row ' From row 7 to the Last used row on "Schedule"
' IF THE ACTIVE CELL IS A FOLLOWING FIC
Sheets(.Range("A" & I).Value).ActiveCell = blah
'SELECT FIC NUMBER
Select Case CInt(Mid(.Range("A" & I).Value, 4, 3))
Case 1
Columns("C").EntireColumn.Hidden = True
Case 2
Columns("D").EntireColumn.Hidden = True
Case 3
Columns("E").EntireColumn.Hidden = True
End Select
End With
End Sub