+ Reply to Thread
Results 1 to 6 of 6

function gets no value in the watch window

  1. #1
    Forum Contributor
    Join Date
    02-27-2020
    Location
    Rotterdam, The Netherlands
    MS-Off Ver
    2013
    Posts
    425

    function gets no value in the watch window

    Hi,

    I wrote code to delete a selection of data beloninging to the last month. I use a countif function to count the amount of rows that should be deleted. Somehow this function doesn't get any value. What am i doing wrong?

    Any input is much appreciated!


    Please Login or Register  to view this content.

  2. #2
    Forum Expert rorya's Avatar
    Join Date
    08-13-2008
    Location
    East Sussex, UK
    MS-Off Ver
    365 Ent Monthly Channel / Insiders Beta
    Posts
    8,903

    Re: function gets no value in the watch window

    How and when are you testing the value?
    Rory

  3. #3
    Forum Contributor
    Join Date
    02-27-2020
    Location
    Rotterdam, The Netherlands
    MS-Off Ver
    2013
    Posts
    425

    Re: function gets no value in the watch window

    in the "lokale variabelen scherm" (dutch), the screen that shows the variables and the dimensions.

  4. #4
    Forum Expert rorya's Avatar
    Join Date
    08-13-2008
    Location
    East Sussex, UK
    MS-Off Ver
    365 Ent Monthly Channel / Insiders Beta
    Posts
    8,903

    Re: function gets no value in the watch window

    And when are you checking it?

  5. #5
    Forum Contributor
    Join Date
    02-27-2020
    Location
    Rotterdam, The Netherlands
    MS-Off Ver
    2013
    Posts
    425

    Re: function gets no value in the watch window

    Before i execute the sub with mutiple F8's i open the lokale variablen venster.

    After i changed

    Please Login or Register  to view this content.
    to
    Please Login or Register  to view this content.
    The problem was solved. Any ideas how this can be?

  6. #6
    Forum Expert rorya's Avatar
    Join Date
    08-13-2008
    Location
    East Sussex, UK
    MS-Off Ver
    365 Ent Monthly Channel / Insiders Beta
    Posts
    8,903

    Re: function gets no value in the watch window

    No. Assuming you had actually executed the line, the variable should have a value even if it’s just 0

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. how to use the watch window
    By ammartino44 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-18-2014, 04:06 PM
  2. Name Watch Window
    By bcn1988 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-20-2013, 11:41 PM
  3. Watch window printing
    By shefsteely in forum Excel General
    Replies: 5
    Last Post: 08-05-2009, 04:48 AM
  4. Watch window question
    By Buzzaro in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-25-2007, 06:16 PM
  5. Watch Window
    By xirokx in forum Excel General
    Replies: 1
    Last Post: 01-29-2006, 12:30 AM
  6. [SOLVED] Docking the Watch Window
    By Richard Buttrey in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-08-2005, 06:05 PM
  7. [SOLVED] VBA Watch Window
    By Adam1 Chicago in forum Excel General
    Replies: 0
    Last Post: 02-24-2005, 05:06 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1