+ Reply to Thread
Results 1 to 5 of 5

How Do I Automatically Delimit Refreshable Web Query

  1. #1
    Registered User
    Join Date
    04-09-2009
    Location
    wolsey, south dakota
    MS-Off Ver
    Excel 2007
    Posts
    5

    How Do I Automatically Delimit Refreshable Web Query

    Hello,

    I've got a web query that refreshes every time I open my spreadsheet. I initially formatted and sorted/filtered this query the way that I wanted it, but every time it automatically refreshes, the data needs to be delimited. Is there any way that I can have this data automatically sorted and delimited every time I open the spreadsheet?

    Thanks, in advance, for your help.

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: How Do I Automatically Delimit Refreshable Web Query

    Record a macro of YOU sorting and delimiting the data. Then take the guts of that macro and put it inside of a Worksheet_Change event macro, insert that macro into the worksheet module where this data query is coming in.

    Then, when the query updates the sheet, that will trigger the macro to resort and delimit the data. Might take some tweaking but it's a good chance to learn and play with the VBA editor.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Registered User
    Join Date
    04-09-2009
    Location
    wolsey, south dakota
    MS-Off Ver
    Excel 2007
    Posts
    5

    Re: How Do I Automatically Delimit Refreshable Web Query

    thanks. it worked.....somewhat. i've never used the macro recorder before and when i got done with my delimiting, formulating, etc., it said that the string was too long. is there an approximate number of calculations that you can complete for one macro? Thanks, again.

  4. #4
    Valued Forum Contributor mudraker's Avatar
    Join Date
    11-10-2003
    Location
    Melbourne, Australia
    Posts
    3,983

    Re: How Do I Automatically Delimit Refreshable Web Query

    It sounds like 1 command within the macro causing the prolem

    Post a copy of the macro & also state which command is causing the error

    P.S Don;t forget to wrap your macro code when you post it
    Please Read Forum Rules Before Posting
    Wrap VBA code by selecting the code and clicking the # icon or Read This
    How To Cross Post politely

    Top Excel links for beginners to Experts

    If you are pleased with a member's answer then use the Scales icon to rate it
    If my reply has assisted or failed to assist you I welcome your Feedback.

  5. #5
    Registered User
    Join Date
    04-09-2009
    Location
    wolsey, south dakota
    MS-Off Ver
    Excel 2007
    Posts
    5

    Re: How Do I Automatically Delimit Refreshable Web Query

    It worked!! Thanks. I've never done much with macros, but this recorder seems pretty easy. I've got one more question that I can't seem to find the answer to; I'll post it in another thread. Thanks, again, for helping me out with this.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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