+ Reply to Thread
Results 1 to 4 of 4

Url As String. Need as Range. Unsure of syntax required

  1. #1
    Registered User
    Join Date
    02-01-2012
    Location
    Manchester, UK
    MS-Off Ver
    Excel 2010
    Posts
    97

    Url As String. Need as Range. Unsure of syntax required

    Hi All,

    I have a macro which downloads a file from a sharepoint site and saves it to the desktop for onward use.

    Please Login or Register  to view this content.
    and various subsets with no luck.

    Secondly, I may have two or more links, depending on the selection of a dropdown field. As such if the value = 1 then A1 is selected. If the value is 2 then A2 is selected.

    Thanks for all your help
    Alex

  2. #2
    Forum Guru
    Join Date
    07-25-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    9,653

    Re: Url As String. Need as Range. Unsure of syntax required

    Please Login or Register  to view this content.
    Secondly, I may have two or more links, depending on the selection of a dropdown field. As such if the value = 1 then A1 is selected. If the value is 2 then A2 is selected.
    Please Login or Register  to view this content.
    Surround your VBA code with CODE tags e.g.;
    [CODE]your VBA code here[/CODE]
    The # button in the forum editor will apply CODE tags around your selected text.

  3. #3
    Forum Expert Olly's Avatar
    Join Date
    09-10-2013
    Location
    Darlington, UK
    MS-Off Ver
    Excel 2016, 2019, 365
    Posts
    6,284

    Re: Url As String. Need as Range. Unsure of syntax required

    To answer the first part of your question:

    Please Login or Register  to view this content.

    Now to answer the second question: you can simply offset the reference depending on the value returned by your dropdown field:

    Please Login or Register  to view this content.
    let Source = #table({"Question","Thread", "User"},{{"Answered","Mark Solved", "Add Reputation"}}) in Source

    If I give you Power Query (Get & Transform Data) code, and you don't know what to do with it, then CLICK HERE

    Walking the tightrope between genius and eejit...

  4. #4
    Registered User
    Join Date
    02-01-2012
    Location
    Manchester, UK
    MS-Off Ver
    Excel 2010
    Posts
    97

    Re: Url As String. Need as Range. Unsure of syntax required

    Fantastic! Thank you so much for your help!

    Kind regards
    Alex

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Unsure of correct reference for named range.
    By JohnDoh in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 03-18-2015, 11:11 AM
  2. Compile Syntax Error - unsure whats wrong with Autofilter Label Macro
    By fallwire in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-25-2015, 03:11 AM
  3. [SOLVED] VBA code required to TRIM and SPLIT the selected Range (String)
    By mchilapur in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 01-20-2015, 04:04 AM
  4. Macro syntax help required. Thank you.
    By Islandplans in forum Excel General
    Replies: 2
    Last Post: 12-10-2014, 04:07 PM
  5. [SOLVED] Unsure on range class error - copy between sheets
    By fredderf81 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 10-21-2013, 02:12 PM
  6. Replies: 2
    Last Post: 04-13-2010, 02:52 AM
  7. [SOLVED] double quotes syntax required
    By brotherharry@gmail.com in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-19-2006, 02:00 PM

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