+ Reply to Thread
Results 1 to 6 of 6

Extract value from cell(s) at a specific time

  1. #1
    Registered User
    Join Date
    02-22-2019
    Location
    Norway
    MS-Off Ver
    Student/Homeoffice 2016
    Posts
    14

    Extract value from cell(s) at a specific time

    Hello guys, I am a stock trader who is trying to build a scanner for some of my strategies, and Excel is crucial to my daily operations. However, I am not at all familiar with macros so I was wondering if someone could get me started on one of my Excel-challenges here.

    One of the numbers I look at are the so called Opening Range of the first 15 minutes from 09:00-09:15 (Highest point of the first 15m and the Lowest point of the 15m of a session)

    I have the highest point of the day and the lowest point of the day live fed into two columns (High in H-Column and Low in I-Column, so I need to collect those numbers at 09:14:59.

    I have attached a workbook here and I hope I explained it well enough.

    Thanks
    Attached Files Attached Files

  2. #2
    Forum Contributor frabulator's Avatar
    Join Date
    09-16-2015
    Location
    United States
    MS-Off Ver
    2019
    Posts
    101

    Re: Extract value from cell(s) at a specific time

    Something that you might run into is getting the document to fire at a specific time. To my knowledge (which, please someone correct me if I am wrong) Excel cannot fire a macro at a certain time. What it can do is fire a macro after a certain amount of time has passed. You can do this several ways, but it requires you to run the macro prior or get the process going some other way.

    What I would probably do is create a secondary excel enabled macro document that pulls information from the source document and set the macro to run upon opening the workbook. Once completed you can use windows Scheduled Task to make sure that the excel document is opened every day at a certain time.

    There might be other, more elegant, ways of doing this, but this is the method I would take.

  3. #3
    Registered User
    Join Date
    02-22-2019
    Location
    Norway
    MS-Off Ver
    Student/Homeoffice 2016
    Posts
    14

    Re: Extract value from cell(s) at a specific time

    Thank you for the response Frabulator,

    I do think it is possible to have this data extracted based on the system clock. There was a thread on a forum about it, but I could not 100% relate to the solution in it, mostly because I am a super newbie to macro. But if you can extract data from certain dates, I think logically you should be able to do it from a clock also.

    I obviously can do this manually to, of course... Hope there is an automated solution to this

  4. #4
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,523

    Re: Extract value from cell(s) at a specific time

    It IS possible of course.

    Google about;

    Application.OnTime

  5. #5
    Forum Contributor frabulator's Avatar
    Join Date
    09-16-2015
    Location
    United States
    MS-Off Ver
    2019
    Posts
    101

    Re: Extract value from cell(s) at a specific time

    Quote Originally Posted by jindon View Post
    It IS possible of course.

    Application.OnTime
    Good to know! Thank you

  6. #6
    Registered User
    Join Date
    02-22-2019
    Location
    Norway
    MS-Off Ver
    Student/Homeoffice 2016
    Posts
    14

    Re: Extract value from cell(s) at a specific time

    Thanks! Never heard about Google. Interesting stuff

+ 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. Replies: 2
    Last Post: 04-16-2019, 10:04 AM
  2. Extract data from webpage at a specific time
    By Trader1 in forum Excel General
    Replies: 1
    Last Post: 07-15-2014, 09:08 AM
  3. How to extract unique value within a specific period of time
    By darwisku in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 04-23-2014, 08:37 AM
  4. extract specific text and number from a string at the same time
    By doctorexcel in forum Excel Programming / VBA / Macros
    Replies: 19
    Last Post: 07-09-2013, 04:30 AM
  5. [SOLVED] Extract a time from a cell with date and time stamp and then perform calculations
    By Marcos Aristotelous in forum Excel General
    Replies: 3
    Last Post: 10-31-2012, 04:36 AM
  6. Replies: 4
    Last Post: 12-02-2011, 02:41 PM
  7. Extract specific text from a cell
    By Offeror in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-09-2011, 05:07 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