+ Reply to Thread
Results 1 to 7 of 7

making a macro to pull a spreadsheet from a changeable link

  1. #1
    Registered User
    Join Date
    11-23-2011
    Location
    Hurst, Tx
    MS-Off Ver
    Excel 2007
    Posts
    25

    Thumbs down making a macro to pull a spreadsheet from a changeable link

    I am working on a spreadsheet that will allow a sup to change dates and then with their sup id it will generate a link to a performance website where they can download their teams data. I am trying to make a macro to do this automatically, however, =hyperlink has issues with links over 256 characters and this is a concatinated link which is much longer. Any help writing this script would be amazing. I have tried to do this multiple times and searched google for additional assistance to no avail.

    Basically i want to allow a supervisor to enter dates (already setup), enter their id already setup and then click an update data button (already setup) and have a macro use the link created (which gives a popup box to open or save the spreadsheet) and save the data to a data.xls file and then automatically copy that data file to the data tab.. (or even open the data copy it and then plug it into the data tab...

    The problem i have is the hyperlink code won't work and i can't seem to get anything to work properly

    First the link:

    CONCATENATE("http://mybusinessdata/corporatedata/Performance%20Viewer/Files/SpreadsheetExport.aspx?grpg=Agent&jde=&spr=",B6,"&mgr=any&bu=any&st=any&tnr=any&trnr=any&trnrnm=any&clid=any&clst=&clend=&rptst=",TEXT(A15,"yyyy-mm-dd"),"&rptend=",TEXT(A16,"yyyy-mm-dd"),"&maxprs=false&excludeterms=true&sgrpg=none&cols=min")

    Now the script i have tried... unsuccessfully i might add..

    Please Login or Register  to view this content.
    It doesn't work.. and that one tries to open the link save it as data.xls and then open it again and copy paste into the data tab..

    Thanks for any help!

    Charles
    Last edited by cebubb; 11-25-2011 at 04:49 PM. Reason: typo

  2. #2
    Registered User
    Join Date
    11-23-2011
    Location
    Hurst, Tx
    MS-Off Ver
    Excel 2007
    Posts
    25

    Re: making a macro to pull a spreadsheet from a changeable link

    I have attached the spreadsheet if that helps. it is in the update tab.
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    11-23-2011
    Location
    Hurst, Tx
    MS-Off Ver
    Excel 2007
    Posts
    25

    Re: making a macro to pull a spreadsheet from a changeable link

    I posted this the other day and have not been able to get any responses. Is this not possible or did I post this in the wrong area?
    Last edited by cebubb; 11-25-2011 at 11:01 AM.

  4. #4
    Registered User
    Join Date
    11-23-2011
    Location
    Hurst, Tx
    MS-Off Ver
    Excel 2007
    Posts
    25

    Re: making a macro to pull a spreadsheet from a changeable link

    Does anyone write macros for autoupdates to websites?

  5. #5
    Registered User
    Join Date
    11-23-2011
    Location
    Hurst, Tx
    MS-Off Ver
    Excel 2007
    Posts
    25

    Re: making a macro to pull a spreadsheet from a changeable link

    Quote Originally Posted by cebubb View Post
    Does anyone write macros for autoupdates to websites?
    I have tried for several days to get assistance, but have had no luck so far. I am thinking of cross posting this to anther forum to see if i can get assistance, but figured I would bump it up from the sea of posts on the other pages as it continues to fall...

  6. #6
    Registered User
    Join Date
    11-23-2011
    Location
    Hurst, Tx
    MS-Off Ver
    Excel 2007
    Posts
    25

    Thumbs down Re: making a macro to pull a spreadsheet from a changeable link

    Quote Originally Posted by cebubb View Post
    I have tried for several days to get assistance, but have had no luck so far. I am thinking of cross posting this to anther forum to see if i can get assistance, but figured I would bump it up from the sea of posts on the other pages as it continues to fall...
    bump from page 5

  7. #7
    Registered User
    Join Date
    11-23-2011
    Location
    Hurst, Tx
    MS-Off Ver
    Excel 2007
    Posts
    25

    Re: making a macro to pull a spreadsheet from a changeable link

    I waited as long as i could wait before cross posting. I got a solution or part of one at the following forum.

    http://answers.microsoft.com/en-us/o...0-aaba428a5ef4

    This can be closed.
    Last edited by cebubb; 11-29-2011 at 08:38 PM.

+ 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