+ Reply to Thread
Results 1 to 4 of 4

timer position error

  1. #1
    Forum Contributor
    Join Date
    07-14-2019
    Location
    Dubai
    MS-Off Ver
    2019
    Posts
    919

    timer position error

    Hello

    i have count-up timer in my excel
    in VBA CODE i choose K10 box to be the position for the timer
    1.png

    if i add or remove cells, timer will cause error bcoz its not adjustable
    2.png
    3.png

    i already have table1 , so how can i link the timer with the table , so if i add or delete rows, timer go up and down without error

    is that possible?

    this my module code
    Please Login or Register  to view this content.
    thanks

  2. #2
    Forum Expert Greg M's Avatar
    Join Date
    08-16-2007
    Location
    Dublin. Ireland
    MS-Off Ver
    Office 2016
    Posts
    4,481

    Re: timer position error

    Hi there,

    Create a Named Range (e.g. ptrTimer) which refers to Cell K1 and use that Named Range (instead of [K10]) in your VBA code.

    Hope this helps - please let me know how you get on.

    Regards,

    Greg M

  3. #3
    Forum Contributor
    Join Date
    07-14-2019
    Location
    Dubai
    MS-Off Ver
    2019
    Posts
    919

    Re: timer position error

    Quote Originally Posted by Greg M View Post
    Hi there,

    Create a Named Range (e.g. ptrTimer) which refers to Cell K1 and use that Named Range (instead of [K10]) in your VBA code.

    Hope this helps - please let me know how you get on.

    Regards,

    Greg M
    Wow, thank you bro
    Last edited by Undo; 07-17-2019 at 10:00 AM.

  4. #4
    Forum Expert Greg M's Avatar
    Join Date
    08-16-2007
    Location
    Dublin. Ireland
    MS-Off Ver
    Office 2016
    Posts
    4,481

    Re: timer position error

    Hi again,

    Many thanks for your very prompt feedback and also for the Reputation increase - much appreciated

    You're welcome - glad I was able to help.

    Best regards,

    Greg M

+ 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. Countdown timer Working BUT starting the timer repeatedly SPEEDS UP TIMER!
    By Vinospam in forum Excel Programming / VBA / Macros
    Replies: 67
    Last Post: 03-30-2019, 06:42 PM
  2. [SOLVED] run-timer error 438 trying to attach file to outlook
    By elfor in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 06-01-2017, 06:20 AM
  3. Replies: 10
    Last Post: 04-18-2017, 06:05 AM
  4. Replies: 0
    Last Post: 04-09-2017, 11:58 PM
  5. Multi Timer giving error
    By Umair.711 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-15-2014, 03:51 PM
  6. [SOLVED] first timer using VB to cut and paste macro - getting compile error syntax error
    By jopedder in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 10-24-2013, 11:45 AM
  7. Replies: 1
    Last Post: 12-12-2012, 08:46 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