Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 24
Default Macro update


I have a question about a work project I am working on.
My superisor wants me to somehow create a spreadsheet in
excel that would automatically retrieve values about
printer meters from a browser and then only allow the
values to be updated once a month. Then he wants these
values archived for data processing. He wants it set up
so there is no need for human intervention to prevent
careless data entry errors. All of the printers are Xerox
which come with a software package that allows you to
monitor printer meters online. How is it possible to do
that?

Right now I have the sreadsheet set up with a macro. I
recorded a macro that would perform web queries and store
the data in a seperate worksheet in the same workbook.
Then I linked the corresponding value back to the
spreadsheet. The problem with this is, how could I code
it to just refresh itself once a month and then archive
the data. I haven't done anything like this ever and I
don't know how to work it.

Thanks for your help.

Rhonda Carroll
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,718
Default Macro update

You can use the Windows Scheduled Tasks applet (under Accessories, System
Tools) to "run" an Excel file. All you need to do is direct the applet to
the XLS and set up a schedule. (I'd schedule it for when no one is using
the machine.) Windows will fire up Excel and open the workbook.

Now your macro will have to be set up to run automatically when the workbook
opens. To do that use the Workbook_Open event in the ThisWorkbook module:

Private Sub Workbook_Open()
MyQueryProcedure
End Sub

I don't know what the boss means by archive; perhaps just save a copy of the
workbook somewhere. Your macro can do that too I suppose.

Then there is the question of error trapping. What if something goes wrong,
like the network is down? Sorry, have to run<g.

--
Jim Rech
Excel MVP


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Merge /Update Macro Ananth Excel Discussion (Misc queries) 7 July 21st 09 10:04 PM
need help to update macro to office 2007 macro enabled workbook jatman Excel Discussion (Misc queries) 1 December 14th 07 01:57 PM
Macro to update sheet comotoman Excel Discussion (Misc queries) 2 November 14th 05 10:46 PM
capture DDE update value in VBA macro chs245 Excel Discussion (Misc queries) 1 April 13th 05 03:31 PM
automatic macro update boconnell Excel Worksheet Functions 4 February 9th 05 07:10 PM


All times are GMT +1. The time now is 10:39 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"