Compile error: ambiguous name detected vba excel Jan-06-17

Anonymous
2017-01-06T18:14:40+00:00

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!

Microsoft 365 and Office | Excel | For home | Windows

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.

0 comments No comments
{count} votes

14 answers

Sort by: Most helpful
  1. Anonymous
    2017-01-10T01:02:25+00:00

    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?

    0 comments No comments
  2. Anonymous
    2017-01-10T13:32:35+00:00

    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.

    0 comments No comments
  3. Anonymous
    2017-01-10T16:07:48+00:00

    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

    0 comments No comments
  4. Anonymous
    2017-01-12T15:40:05+00:00

    Thank you Bernie, your Codes were put in and i am using it on the field  and it work great, thank you very much.

    0 comments No comments