How can I declare the variable from the list for ADODB query ?

Copper Contributor
Test
9 Replies

@MarieParis 

VBA uses straight quotes "...", not French quotes. So:

 

If Target.Address(False, False) = "E15" Then

Hello,
Thank you !
I replaced, but it doesn’t work (

@MarieParis 

Click in the line

Private Sub Worksheet_Change(ByVal Target As Range)

and press F9 to set a breakpoint.

Change cell E15 and press Enter.

The code will pause at the above line.

You can press F8 repeatedly to execute the code line by line.

Does that provide a clue?

F8 doesn’t work at all (
What does it mean The code will pause at the above line ?
I would like just click on the variable in the list and after use this variable on my sql query.

@MarieParis 

Could you attach a copy of the workbook (without sensitive information)?

My code is

@MarieParis 

We're not getting any further. Perhaps someone else can help you.