+ Reply to Thread
Results 1 to 9 of 9

programming web query

  1. #1
    Forum Contributor
    Join Date
    01-06-2009
    Location
    uk
    MS-Off Ver
    Excel 2007
    Posts
    415

    programming web query

    hi guys
    im wondering if any one could enlighten me as to why sheet summary goes all wafty when i try to do a new input on the input sheet even though i recorded a macro to make the cells do what they need to.
    i thought i had sussed it but to no avail
    here is the link for you cleverer people
    kind regards
    http://www.sendspace.com/file/1uk1fb

  2. #2
    Forum Contributor
    Join Date
    01-06-2009
    Location
    uk
    MS-Off Ver
    Excel 2007
    Posts
    415

    Re: programming web query

    would someone be able to explain the difference between this
    Please Login or Register  to view this content.
    and this

    Please Login or Register  to view this content.
    the top one is a macro i recorded and the bottom one the actual formula in the cell
    why isr1c5?
    does that mean row 1 and column 5 which is what it would be and why has it converted?
    Last edited by excellentexcel; 03-08-2009 at 03:05 PM.

  3. #3
    Forum Contributor
    Join Date
    01-06-2009
    Location
    uk
    MS-Off Ver
    Excel 2007
    Posts
    415

    Re: programming web query

    bump bump bump

  4. #4
    Forum Contributor
    Join Date
    01-06-2009
    Location
    uk
    MS-Off Ver
    Excel 2007
    Posts
    415

    Re: programming web query

    someone out there must surely be able to help me with this please

  5. #5
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: programming web query

    Yes, the macro recorder uses the R1C1 format which means Row/Column format...

    If you want to use your formula just replace the R1C5 with $E$1 in the VBA editor but it should still give same final result
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  6. #6
    Forum Contributor
    Join Date
    01-06-2009
    Location
    uk
    MS-Off Ver
    Excel 2007
    Posts
    415

    Re: programming web query

    nbvc
    have you tried pressing the button as maybe you can see something in the code thats making it do what it does?
    thanks for the reply
    its so close but just not quite right
    thanks

  7. #7
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: programming web query

    Try:

    Please Login or Register  to view this content.

  8. #8
    Valued Forum Contributor
    Join Date
    08-26-2006
    Location
    -
    MS-Off Ver
    2010
    Posts
    388

    Re: programming web query

    Quote Originally Posted by excellentexcel View Post
    why sheet summary goes all wafty when i try to do a new input on the input sheet even though i recorded a macro to make the cells do what they need to.
    I can't help with the question (you should state what you are trying to do and what is going wrong) but one thing I notice, after refreshing the query tables, you've added code to insert cell formulas and fill down to row 1000+. This isn't necessary because if you right-click a query table and choose Data Range Properties there is an option to 'Fill down formulas in columns adjacent to data'.

    If this is ticked then all formulas to the right of the query table get filled down automatically when the refreshing the query table.

    On each sheet with a query table enter formula in the column(s) immediately to the right of the query table, e.g. using the first table from http://www.soccerbase.com/head2.sd?t...42&team2id=154 if the query table is in A1:D5, enter formulas in E2, F2, G2, etc. then click Refresh Data.

    To get the macro to fill down formulas automatically, change this

    Please Login or Register  to view this content.
    to
    Please Login or Register  to view this content.

  9. #9
    Forum Contributor
    Join Date
    01-06-2009
    Location
    uk
    MS-Off Ver
    Excel 2007
    Posts
    415

    Re: programming web query

    hi t-j thanks for the reply
    i have deleted all my old formulas
    re saved as another name but its not doing as you said it should
    it doesnt copy the formulas down
    i did what you said word for word
    kind regards

+ 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