In column 4, most of the values are a 3 letter word. Some of the values in column 4…
Jump to turn (10)
- 1In column 4, most of the values are a 3 letter word. Some of the values in colum
- 2I need a VBA code that will select the first empty space in column A
- 3The following code executes and at the end it selects the sheet identified in ws
- 4My problem is that there is another code that is activated by F2. The code check
- 5My apologies. What I was trying to say is that there is another code that is act
- 6The other code that I would like to disable ' Private Sub SelectFirstEmptyCell()
- 7Thanks
- 8I would like to change the following code to find the last cell in Column B that
- 9When the last used row in column B is found, I only need to check if the cell in
- 10Is it possible to run macro on an excel sheet1 only if the sheet1 was called by
- User
In column 4, most of the values are a 3 letter word. Some of the values in column 4 contain 4 letters. I would like to add a condition to the following code that checks column 4 so that it uses the first 3 letters as the Target Value in the code below.
If Target.Column = [4] Then Set wsd = ThisWorkbook.Sheets(Target.Value) 'Set To the sheet named in the clicked cell wsd.Activate
- Assistant
If Target.Column = 4 Then 'Check if clicked cell is in column 4 If Len(Target.Value) > 3 Then 'Check if value in clicked cell has more than 3 letters Set wsd = ThisWorkbook.Sheets(Left(Target.Value, 3)) 'Set To the sheet named with the first 3 letters wsd.Activate Else Set wsd = ThisWorkbook.Sheets(Target.Value) 'Set To the sheet named in the clicked cell wsd.Activate End If End If
- User