+ Reply to Thread
Results 1 to 4 of 4

excel automation

Hybrid View

  1. #1
    Registered User
    Join Date
    10-06-2013
    Location
    london
    MS-Off Ver
    Excel 2003
    Posts
    13

    excel automation

    I have an excel file which updates data in sheet when open. This data is pulled from sql server database.

    I would like to make this automate. I want this file to be store in a location and daily morning(ex at 6 am) this automatically pulls the data from sql server(which already doing when open the file, but manual work for which we need to open the file manually) and save the file at same location and then close it and email this file to me.

    is there a way out for this?

  2. #2
    Forum Expert Jakobshavn's Avatar
    Join Date
    08-17-2012
    Location
    Lakehurst, NJ, USA
    MS-Off Ver
    Excel 2007
    Posts
    1,970

    Re: excel automation

    Because you want the file saved, closed, and emailed, the best solution is probably to use the Windows Task Scheduler (WTS) in conjunction with some VBA macros. A typical scenario:

    1. First morning task (WTS) opens the workbook
    2. Macros in the workbook (VBA) gathers the data, processes it, saves the data, closes the workbook
    3. Second morning task (WTS) emails the processed workbook
    Gary's Student

  3. #3
    Registered User
    Join Date
    10-06-2013
    Location
    london
    MS-Off Ver
    Excel 2003
    Posts
    13

    Re: excel automation

    Thanks, but i am not able to auto refresh the workbook. Steps is not working automatically it need an manual help.
    for email i already have a scheduled job.

  4. #4
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,167

    Re: excel automation

    Please take a moment to read the forum rules and then amend your thread title to something descriptive of your problem. Once you have done this please send me a PM and I will remove this request.

    To change a Title on your post, click EDIT POST then Go Advanced and change your title, if 2 days have passed ask a moderator to do it for you.
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

+ 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. help with excel automation
    By cacamalapata in forum Excel General
    Replies: 3
    Last Post: 07-02-2010, 03:15 PM
  2. Excel Automation
    By Patronedheart in forum Excel General
    Replies: 5
    Last Post: 08-06-2009, 12:23 AM
  3. Excel automation
    By BlueFortyTwo in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-15-2007, 03:14 PM
  4. Excel 2.1 - .NET Automation
    By jworksinc@gmail.com in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-13-2006, 02:55 PM
  5. Excel OLE automation
    By Nicolas in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-19-2005, 03: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