Results 1 to 6 of 6

Thread: [RESOLVED] Programatically Update Excel Files - A Question

  1. #1

    Thread Starter
    Fanatic Member The_Grudge's Avatar
    Join Date
    Jan 2005
    Location
    Canada
    Posts
    836

    Resolved [RESOLVED] Programatically Update Excel Files - A Question

    I have a series of Excel files. Each Excel file contains a few different sheets worth of raw data, and 3 or 4 pivot tables based on that raw data.

    Each month I run a SAS program that updates the raw data in each Worksheet. Each time my update finished I thought I'd have to go through and manually update each Pivot table by right clicking and selecting "Refresh Pivot Table" but it seems to be updating the tables on it's own.

    Does that seem right or am I nuts?

  2. #2
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: Programatically Update Excel Files - A Question

    Do you have macros running when the spreadsheet opens? If so, they may be the onese doing the refresh for you.

  3. #3

    Thread Starter
    Fanatic Member The_Grudge's Avatar
    Join Date
    Jan 2005
    Location
    Canada
    Posts
    836

    Re: Programatically Update Excel Files - A Question

    I don't think I have any macros at all, no. Hmmm....

  4. #4

    Thread Starter
    Fanatic Member The_Grudge's Avatar
    Join Date
    Jan 2005
    Location
    Canada
    Posts
    836

    Re: Programatically Update Excel Files - A Question

    Nevermind - The "macro" in this case was a co-worker that went through and updated everything without my knowledge

  5. #5
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: [RESOLVED] Programatically Update Excel Files - A Question

    Not as reliable as a macro, but still works occasionally.

  6. #6
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    Re: [RESOLVED] Programatically Update Excel Files - A Question

    You can look at the "Last Modified by" property of the xls and see who did the "update"
    VB/Office Guru™ (AKA: Gangsta Yoda®)
    I dont answer coding questions via PM. Please post a thread in the appropriate forum.

    Microsoft MVP 2006-2011
    Office Development FAQ (C#, VB.NET, VB 6, VBA)
    Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
    If a post has helped you then Please Rate it!
    Reps & Rating PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI Viewer utility.NET API Viewer Utility
    System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width