Thema Datum  Von Nutzer Rating
Antwort
11.09.2023 14:54:11 Nouman
NotSolved
Blau VBA EXCEL DATA Validation
11.09.2023 16:51:24 Gast31769
NotSolved
12.09.2023 09:40:15 Gast88628
NotSolved
11.09.2023 17:09:48 Gast54077
NotSolved
11.09.2023 18:52:56 Gast49808
NotSolved
12.09.2023 15:32:32 Gast31769
NotSolved
12.09.2023 20:17:45 Gast11037
NotSolved

Ansicht des Beitrags:
Von:
Gast31769
Datum:
11.09.2023 16:51:24
Views:
153
Rating: Antwort:
  Ja
Thema:
VBA EXCEL DATA Validation

Hi Nouman,

1) you'r setting a reference to a worksheet but by my understanding all data are located on the same worksheet. That means Target.Worksheet is your worksheet; no need to reference it by name.

At the moment I can't see any direct error. It should work.

2) Have you tried debugging your code yet? If not, that should be your next step.
Place a breakpoint by placing the text cursor on any line (with code) and press F9; the line should now be marked. Make sure you mark a line of code that can definitely be reached; So, for example, do not mark a line within an if-statement, unless you are interested in exactly this if-statement. Then edit a cell in your worksheet that should trigger the WorksheetChange-Event.
Now the code execution should stop at your specified breakpoint / the code editor should automatically be brought to the foreground. Continue executing the code step-by-sep via F8. With F5 the code continues to execute normally until the next breakpoint is reached.

That way you can find out why your code doesn't behave as you think.

 

Best regards

PS: You can mouse-over variables and properties to see their current value during debugging mode.


Ihre Antwort
  • Bitte beschreiben Sie Ihr Problem möglichst ausführlich. (Wichtige Info z.B.: Office Version, Betriebssystem, Wo genau kommen Sie nicht weiter)
  • Bitte helfen Sie ebenfalls wenn Ihnen geholfen werden konnte und markieren Sie Ihre Anfrage als erledigt (Klick auf Häckchen)
  • Bei Crossposting, entsprechende Links auf andere Forenbeiträge beifügen / nachtragen
  • Codeschnipsel am besten über den Code-Button im Text-Editor einfügen
  • Die Angabe der Emailadresse ist freiwillig und wird nur verwendet, um Sie bei Antworten auf Ihren Beitrag zu benachrichtigen
Thema: Name: Email:



  • Bitte beschreiben Sie Ihr Problem möglichst ausführlich. (Wichtige Info z.B.: Office Version, Betriebssystem, Wo genau kommen Sie nicht weiter)
  • Bitte helfen Sie ebenfalls wenn Ihnen geholfen werden konnte und markieren Sie Ihre Anfrage als erledigt (Klick auf Häckchen)
  • Bei Crossposting, entsprechende Links auf andere Forenbeiträge beifügen / nachtragen
  • Codeschnipsel am besten über den Code-Button im Text-Editor einfügen
  • Die Angabe der Emailadresse ist freiwillig und wird nur verwendet, um Sie bei Antworten auf Ihren Beitrag zu benachrichtigen

Thema Datum  Von Nutzer Rating
Antwort
11.09.2023 14:54:11 Nouman
NotSolved
Blau VBA EXCEL DATA Validation
11.09.2023 16:51:24 Gast31769
NotSolved
12.09.2023 09:40:15 Gast88628
NotSolved
11.09.2023 17:09:48 Gast54077
NotSolved
11.09.2023 18:52:56 Gast49808
NotSolved
12.09.2023 15:32:32 Gast31769
NotSolved
12.09.2023 20:17:45 Gast11037
NotSolved