+ Reply to Thread
Results 1 to 4 of 4

Add a url and textbox.value to a button

  1. #1
    Registered User
    Join Date
    06-09-2015
    Location
    London, England
    MS-Off Ver
    2013
    Posts
    2

    Add a url and textbox.value to a button

    I want to a goto url + [textbox.value]

    so when i click on the button it opens a browser an goes to www.url.com/[textbox.value]

    how do i do that ?
    I using access 2013 btw.


    Thanks

  2. #2
    Valued Forum Contributor ranman256's Avatar
    Join Date
    07-29-2012
    Location
    Kentucky
    MS-Off Ver
    Excel 2003
    Posts
    1,176

    Re: Add a url and textbox.value to a button

    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    06-09-2015
    Location
    London, England
    MS-Off Ver
    2013
    Posts
    2

    Re: Add a url and textbox.value to a button

    Thanks for the great reply!

    but how get the value fx.

    sub btnGo_Click()
    dim vAddr

    vAddr = "http://www.proff.dk/branches%C3%B8g?q=" & [ZIPCODE].value
    Call Shell("C:\Program Files (x86)\Internet Explorer\iexplore.exe " & vAddr, vbMaximizedFocus)

    end sub

    Thanks

  4. #4
    Valued Forum Contributor ranman256's Avatar
    Join Date
    07-29-2012
    Location
    Kentucky
    MS-Off Ver
    Excel 2003
    Posts
    1,176

    Re: Add a url and textbox.value to a button

    you just add the name of the txt box (dont use VALUE)
    "http://www.proff.dk/branches%C3%B8g?q=" & txtZipCode

+ 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] Textbox and Option Buttons - If Textbox has a Value then an Option Button must be selected
    By MeerkatMatt in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-08-2014, 07:45 AM
  2. [SOLVED] Help With Using Option Button and Textbox with A Command Button
    By VBTroubles in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-02-2014, 09:40 AM
  3. [SOLVED] Command Button to add +1 to Textbox;
    By Gal403 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 12-06-2013, 03:55 AM
  4. Replies: 3
    Last Post: 05-07-2012, 09:46 PM
  5. Userform: Pass textbox values to another textbox on button press
    By adjustermn in forum Word Programming / VBA / Macros
    Replies: 3
    Last Post: 02-09-2010, 11:19 PM

Tags for this Thread

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