+ Reply to Thread
Results 1 to 9 of 9

VBA Code to link with Time Clock within Excel Sheet instead of my PC Clock

  1. #1
    Registered User
    Join Date
    01-27-2022
    Location
    UK
    MS-Off Ver
    2021
    Posts
    44

    VBA Code to link with Time Clock within Excel Sheet instead of my PC Clock

    Hi,

    I have a code which drags cells containing formulas one cell down after every one minute.
    This code takes Time from my PC clock.

    Now I want to make a change In this code
    In cell D1 I have DDE server clock time which is updating live.
    I only want that you just change this code and link this code with clock time in Cell D1 instead of my PC clock.
    Last edited by wb35102; 06-01-2022 at 09:23 PM.

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,462

    Re: Want to make a Change in this VBA Code

    I would think you just need to change
    Please Login or Register  to view this content.
    to
    Please Login or Register  to view this content.
    You might need to qualify the range with the sheet name.
    For example
    Please Login or Register  to view this content.
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Registered User
    Join Date
    01-27-2022
    Location
    UK
    MS-Off Ver
    2021
    Posts
    44

    Re: Want to make a Change in this VBA Code

    Hi, @TMS

    I am new to Excel and does not know anything about coding.

    Can you please sir add these changes in the code and reply me in this thread with full changed code in it.

    Thanks a lot

    I tried and this is result i got. But when i click F5 to run file just got hanged every time.

    Please Login or Register  to view this content.
    Last edited by wb35102; 06-01-2022 at 11:15 AM.

  4. #4
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,462

    Re: Want to make a Change in this VBA Code

    You have made the change as I would have. It might be worth trying the fully qualified version.

  5. #5
    Registered User
    Join Date
    01-27-2022
    Location
    UK
    MS-Off Ver
    2021
    Posts
    44

    Re: Want to make a Change in this VBA Code

    Hi, @TMS

    I have attached the file.

    Please look at this
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    01-27-2022
    Location
    UK
    MS-Off Ver
    2021
    Posts
    44

    Re: Want to make a Change in this VBA Code

    Hi @TMS

    Please sir make changing in this code. I have attached file

  7. #7
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,916

    Re: Want to make a Change in this VBA Code

    Administrative Note:

    We would very much like to help you with your query, however you need to include code tags around your code.

    Please take a moment to add the tags. Posting code between [code]Please [url=https://www.excelforum.com/login.php]Login or Register [/url] to view this content.[/code] tags makes your code much easier to read and copy for testing, and it also maintains VBA formatting.

    Please see Forum Rule #2 about code tags and adjust accordingly. Click on Edit to open your post, then highlight your code and click the # icon at the top of your post window. More information about these and other tags can be found here

    (Note: this change is not optional. No help to be offered until this moderation request has been fulfilled.)
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  8. #8
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,916

    Re: Want to make a Change in this VBA Code

    Administrative Note:

    We would very much like to help you with your query, however the thread title does not really convey what your request is about. Tell us what you are trying to do, not how you think it should be done.

    Please take a moment to amend your thread title. Make sure that the title properly explains your request. Your title should be explicit and not be generic (this includes function names used without an indication of what you are trying to achieve).

    Please see Forum Rule #1 about proper thread titles and adjust accordingly. To edit the thread title, open the original post to edit and then click on Go Advanced (bottom right) to access the area where you can edit your title.

    (Note: this change is not optional. No help to be offered until this moderation request has been fulfilled.)

  9. #9
    Registered User
    Join Date
    01-27-2022
    Location
    UK
    MS-Off Ver
    2021
    Posts
    44

    Re: Want to make a Change in this VBA Code

    Hi @AliGW

    I have changed my title according to my this thread.

+ 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. [SOLVED] Code to make a cell number change if a predetermined date has passed
    By richard11153 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 11-18-2019, 10:11 AM
  2. [SOLVED] Trying to Change this code to make it paste 'Values' only.
    By RWarczy in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 01-23-2013, 05:11 PM
  3. change in VBA code to make it compatibile with 64-bit
    By c.vaibhav in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-18-2013, 02:26 PM
  4. [SOLVED] Code to make buttons change colors on click
    By ISUCyclones in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-10-2013, 05:31 PM
  5. Replies: 15
    Last Post: 04-17-2012, 08:19 AM
  6. how do i change or make this macro??? pictures and code included
    By dispelthemyth in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-17-2006, 10:00 AM

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