+ Reply to Thread
Results 1 to 6 of 6

Automate worksheet update

  1. #1
    Registered User
    Join Date
    01-16-2021
    Location
    Nottingham, Engkand
    MS-Off Ver
    2021
    Posts
    11

    Automate worksheet update

    Hello all,


    l am attempting to copy the externally generated value in B5 to the correct corresponding date to column G.

    Trigger for this to action would be change of value in B1(=Today)
    Following this action if possible would also want to automate copy/paste formula in column I if value exists in column H.

    Appreciate any help, advice or guidance.
    Thanks
    Alan
    Attached Files Attached Files

  2. #2
    Forum Expert BadlySpelledBuoy's Avatar
    Join Date
    06-14-2013
    Location
    East Sussex, UK
    MS-Off Ver
    365
    Posts
    7,916

    Re: Automate worksheet update

    Unfortunately the updating of a formula such as =TODAY() is not enough to trigger some VBA code. It has to be a "physical" change such as entering the date manually.

    However, you could use the workbook open event to accomplish this. Try the below in the ThisWorkbook module and it will run when the file opens.
    Please Login or Register  to view this content.
    You could add to the code so it only runs the first time the file is opened. i.e. only run this piece of code if there's not already a figure against today's date.

    This may not work for you, but there's too little information to work with to know for sure.

    BSB

  3. #3
    Forum Expert BadlySpelledBuoy's Avatar
    Join Date
    06-14-2013
    Location
    East Sussex, UK
    MS-Off Ver
    365
    Posts
    7,916

    Re: Automate worksheet update

    Quote Originally Posted by alan2260 View Post
    would also want to automate copy/paste formula in column I if value exists in column H.
    I'm not sure what you mean by this. What formula?

    BSB

  4. #4
    Registered User
    Join Date
    01-16-2021
    Location
    Nottingham, Engkand
    MS-Off Ver
    2021
    Posts
    11

    Re: Automate worksheet update

    Thanks BSB, code works perfectly.
    Regarding your suggestion what do I need to add so it only runs on first time opening?
    Alan.

  5. #5
    Forum Expert BadlySpelledBuoy's Avatar
    Join Date
    06-14-2013
    Location
    East Sussex, UK
    MS-Off Ver
    365
    Posts
    7,916

    Re: Automate worksheet update

    Try this
    Please Login or Register  to view this content.
    BSB

  6. #6
    Registered User
    Join Date
    01-16-2021
    Location
    Nottingham, Engkand
    MS-Off Ver
    2021
    Posts
    11

    Re: Automate worksheet update

    Perfect, thanks.
    Appreciate your time to assist with my problem.
    Alan

+ 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. Repost for update:Automate my stock fabric
    By Fahim Al Mamun in forum Excel General
    Replies: 1
    Last Post: 06-19-2022, 06:01 AM
  2. How to update a table with Power automate
    By Underkarolinawood in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-29-2021, 07:51 AM
  3. Using VBA to update automate a formula
    By nav505 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 07-27-2013, 06:12 PM
  4. Replies: 2
    Last Post: 04-10-2013, 01:39 PM
  5. How to automate update cells' values
    By cyberguest in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 01-31-2013, 07:42 PM
  6. Automate update from 3 files to 1.
    By saugui in forum Excel General
    Replies: 2
    Last Post: 09-27-2006, 07:48 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