Results 1 to 1 of 1

Issue with Macro designed to refresh, save and send

Threaded View

  1. #1
    Registered User
    Join Date
    01-10-2019
    Location
    Scotland
    MS-Off Ver
    2010
    Posts
    9

    Issue with Macro designed to refresh, save and send

    Hi

    Hoping someone can help as I am not able to crack this

    I have an Excel workbook which has 2 tabs - one tab for the raw data which comes from an ODBC Connection to our Data warehouse
    The second worksheet is the Pivot table with results that is what our sales team are interested in

    Having not long started I've been asked to open workbook, refresh the data worksheet, refresh the Pivot table and send by email to D/L

    My macro is supposed to refresh the worksheet with the ODBC Connection, save it and then send it to a D/L

    But when I run the macro it sends first then refreshes the data - so the recipients will not get the latest data unless I do it manually

    I have posted an example workbook with the code - any help would be massively appreciated
    Attached Files Attached Files

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 1
    Last Post: 06-04-2018, 01:57 PM
  2. Open Excel, refresh, save and send via email.
    By Aerator in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-22-2015, 05:55 PM
  3. Macro issue involving external connection refresh
    By chisox721 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-16-2015, 04:19 PM
  4. [SOLVED] Password code designed for 5 Users - NAVIGATION Help Needed! - CODE Issue!
    By JJFletcher in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 11-09-2014, 10:46 AM
  5. Excel 2007 - Macro to refresh data import and send email
    By western2379 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-04-2013, 04:09 PM
  6. Need macro to open, refresh, save, close 50 workbooks in a folder.
    By paulcg in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-11-2012, 09:23 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