The code that I just posted will allow cells in columns D and Q to be selected, if they are empty. If they are not empty, then the cell in B or O will be selected.
How does that differ from what you actually want?
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
when i add another VBA into the same Sheet its produce a Complile error: ambigous name detected vba
please help on how can i accomplish this!
Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.
The code that I just posted will allow cells in columns D and Q to be selected, if they are empty. If they are not empty, then the cell in B or O will be selected.
How does that differ from what you actually want?
Good morning Bernie hope you are having a nice day!
i was looking for the code you said you just posted, i did't see anything,
this is what i do:
i am a Remodeling contractor, and i do my measurement with a Leica measurement Bluetooth in to the excel, i have been imputing date and time manually, and i though by having micros writing will help, 4 years ago the last mentioned code were wrote, and now i want to add for day and time: am i creating a problem to the cell?
thank you for the help you have provide, i greatly appreciated.
I would try deleting the code that your highlighted:
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
If Target.Column = 4 Then i can not write any number in this cell or even click
Beep
Cells(Target.Row + 1, 2).Activate
End If
If Target.Column = 17 Then i can not write any number in this cell or even click
Beep
Cells(Target.Row + 1, 15).Activate
End If
End Sub
Thank you Bernie, your Codes were put in and i am using it on the field and it work great, thank you very much.