+ Reply to Thread
Results 1 to 7 of 7

Read Active Window and create a data base

  1. #1
    Forum Contributor
    Join Date
    07-17-2012
    Location
    India
    MS-Off Ver
    Excel 2016
    Posts
    715

    Read Active Window and create a data base

    Hi,

    How exactly can I get the Active Window tittle text? Example : If I went to www.google.com it would return www.google.com OR if like Notepad is open and active it would say Notepad. I got the script, but I need to extend this to have log created in excel file.

    Please Login or Register  to view this content.
    Keep the Forum clean :


    1. Use [ code ] code tags [ /code ]. It keeps posts clean, easy-to-read, and maintains VBA formatting.
    2. Show appreciation to those who have helped you by clicking * Add Reputation below their posts.
    3. If you are happy with a solution to your problem, mark the thread as [SOLVED] using the tools at the top.

  2. #2
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,363

    Re: Read Active Window and create a data base

    Hi Shiva,

    Newer versions of Excel have a new tool called Power Query. Power Query was built to deal with problems like yours. There is a new book called "M is for (DATA) Monkey" which tells about this new tool. For your exact problem read.

    https://support.office.com/en-us/art...7-D3DA689091B5
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  3. #3
    Forum Contributor
    Join Date
    07-17-2012
    Location
    India
    MS-Off Ver
    Excel 2016
    Posts
    715

    Re: Read Active Window and create a data base

    Thanks Marvin,

    However, I am using MSO version 10 at this point of time

    Moreover I intend to use this on my student PC to see who is using what window during my assignment period. I have been trying to built this code quite some weeks now, but could not pass the stage yet.

    Thanks,
    Shiva

  4. #4
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,363

    Re: Read Active Window and create a data base

    I guess I didn't understand your requirements. Have you considered a Screen Capture program to store what other screens are displayed?

    or perhaps this link is closer to what you are trying to accomplish?

    http://www.exceltip.com/files-workbo...oft-excel.html

  5. #5
    Forum Contributor
    Join Date
    07-17-2012
    Location
    India
    MS-Off Ver
    Excel 2016
    Posts
    715

    Re: Read Active Window and create a data base

    More likely.. Ok here is what I am trying.. I have 10 student in my class. They are in the class for duration of 4 hours. In 4 hours, I give them assignment.
    All of them use window station to practice with internet connection. But all 4 hours are not completely spent being training. They tend to use site surfing and some other activity.

    1) I want to see how many hours they spend on each of the application in window. Say, while studying they login to Amazon.com then I want log to be created with start and end time or duration student was on Amazon.com.
    2) I do not want to use excel, as I then need to keep excel open. hence I would like to create VB script which I can store in desktop and have it run before class starts.

    All I want is if User goes to www.google.com it would return www.google.com OR if like Notepad is open and active it would say Notepad and log those information in some common drive path.

    Hope this helps.

    Thanks,
    Shiva

  6. #6
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,645

    Re: Read Active Window and create a data base

    Shiva

    Surely there's dedicated software available to monitor the students internet activity.
    If posting code please use code tags, see here.

  7. #7
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,363

    Re: Read Active Window and create a data base

    Hi shiva,

    This sounds like something that would be questioned as "privacy" in the USA. I think you are looking for a tool that would log browser history for you 10 student computers. Perhaps a tool like http://www.mobistealth.com/features/...ternet-logging that I know nothing about.

+ 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. Switch from Active Window to Variable Window/Rename Varaible Sheet
    By CravingGod in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 02-04-2016, 09:52 AM
  2. read data from sheet1 and base on some parameters copy in other sheet
    By pedjvak in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-04-2015, 03:03 AM
  3. [SOLVED] create data base that link to report
    By sarahqputra in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 01-26-2015, 10:38 PM
  4. resize active window ie: add to the height of the active window
    By hopefulhart in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-07-2014, 01:55 AM
  5. Active formula to calculate volume from data read in daily
    By smockpuv in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-14-2013, 04:38 PM
  6. need help in making the current window as active window.
    By ashvija in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-27-2012, 06:04 PM
  7. I need to create a data base
    By Kernow1962 in forum Excel General
    Replies: 2
    Last Post: 08-06-2006, 12:05 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