How do you use the Contains Function in Visual Basic?

In excel, A1 contains a num value that changes every minute, How can I capture value of A1 in cell B1 at exactly 6:30 PM. I may use if function, however, the value of B1 shud not get updated along with time. It shud always contain the value of A1 at6:30pm

  • Answer:

    How is the worksheet activated, recalculated, or added to so that it is updated "every minute"? That is not normal behavior for an Excel file, so that's a key to whatever else we're trying to do here.

kalyan at Answerbag.com Visit the source

Was this solution helpful to you?

Other answers

... I'll give you a hint without writing the code for you ... ... you have to have a near endless loop that checks the system clock and compares it to 6:30 PM ... if/when equal, then copy the value from A1 ... if/else while not equal, loop and check the clock again, compare again, and so on, looping until it does equal ... then "save as" so the file is copied and named with the name being the time/date ... this will give you a new file every day with the value of A1 at 6:30 PM stored in cell B1 ...

Takei-Shihan

Just Added Q & A:

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.