+ Reply to Thread
Results 1 to 11 of 11

Coding the button problem in a UserForm

  1. #1
    Registered User
    Join Date
    10-29-2007
    Posts
    49

    Coding the button problem in a UserForm

    Hello Everyone

    This code below works great to take the user to a specific web page - so I am half way to my needed target. This code is associated with a button in a Userform.

    Please Login or Register  to view this content.
    I need just one last piece to send the user to a specific (target) (bookmark) in the html page...

    Any thoughts will be greatly appreciated..

    Best regards,

    John

  2. #2
    Registered User
    Join Date
    03-07-2017
    Location
    Canada
    MS-Off Ver
    2010
    Posts
    182

    Re: Coding the button problem in a UserForm

    Maybe this?

    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    10-29-2007
    Posts
    49

    Re: Coding the button problem in a UserForm

    HI N323100,

    Thanks for your reply -

    Your suggestion ActiveWorkbook.FollowHyperlink Address:="your web link", NewWindow:=True Produced an (error)

    The links in the web page are like this <a name=target1>Bob Smith</a>

    Please Login or Register  to view this content.
    Last edited by John Fletcher; 05-22-2017 at 07:17 AM.

  4. #4
    Registered User
    Join Date
    03-07-2017
    Location
    Canada
    MS-Off Ver
    2010
    Posts
    182

    Re: Coding the button problem in a UserForm

    What is the error?

  5. #5
    Registered User
    Join Date
    10-29-2007
    Posts
    49

    Re: Coding the button problem in a UserForm

    ActiveWorkbook.FollowHyperlink Address:="your web link", NewWindow:=True

    is yellow


    There are approx. 300 rows. and each row has a separate (bookmark) in the html page that I need to have the user taken to

    John
    Last edited by John Fletcher; 05-22-2017 at 07:27 AM.

  6. #6
    Registered User
    Join Date
    03-07-2017
    Location
    Canada
    MS-Off Ver
    2010
    Posts
    182

    Re: Coding the button problem in a UserForm

    try including "http://" on your link

  7. #7
    Registered User
    Join Date
    10-29-2007
    Posts
    49

    Re: Coding the button problem in a UserForm

    I do not understand...

    Hard coding the hyperlink in the button does not allow any other html page to be loaded... Only the one coded in the button

    When I mentioned the 300 rows - there are 300 different web pages and each has a location that the user needs to be taken to by way of the link in the cell i.e.: http://www.webpage.com/directory/file.html#target1 (this is changed to direct the user to the correct location I n the web page

    As mentioned this code works great to pull the web page needed - I just need to direct the user to a target in the page

    Please Login or Register  to view this content.
    Last edited by John Fletcher; 05-22-2017 at 07:37 AM. Reason: grammer

  8. #8
    Registered User
    Join Date
    03-07-2017
    Location
    Canada
    MS-Off Ver
    2010
    Posts
    182

    Re: Coding the button problem in a UserForm

    Would you mind to attach your project?

  9. #9
    Registered User
    Join Date
    10-29-2007
    Posts
    49

    Re: Coding the button problem in a UserForm

    sure - here is the form

    I am using my wife's review page to practice on - and get the user to specific locations in that web page

    Oh I forgot - select the Lookup button to launch the form - Sorry!

    Also, I did modify the code to include the URL as you suggested and the code works to pull the web page - however no way to direct the user to specific location in the web page
    Last edited by John Fletcher; 05-22-2017 at 07:56 AM.

  10. #10
    Registered User
    Join Date
    10-29-2007
    Posts
    49

    Re: Coding the button problem in a UserForm

    I have to head off to work... I will come back this afternoon to further look into solving this issue.....

    Thanks in advance for your thoughts on this puzzle!

    John

  11. #11
    Registered User
    Join Date
    10-29-2007
    Posts
    49

    Re: Coding the button problem in a UserForm

    Good Morning N323100

    Thought I would reach out and discuss the file uploaded yesterday and see if you had any additional thoughts?

    John

+ 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] In need of help regarding combo box coding and button coding (Access form project)
    By mailblade in forum Access Tables & Databases
    Replies: 2
    Last Post: 01-09-2016, 01:34 AM
  2. [SOLVED] Userform Submit Button Problem
    By scottjwe in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-19-2015, 12:01 AM
  3. Help with coding an edit row button form a userform
    By Stephen_Malley in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-10-2014, 07:53 AM
  4. Coding Search and Update Command Button in an UserForm
    By sottojeromey in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-25-2013, 06:39 AM
  5. Coding a button in an Excel UserForm to add information to a summary table worksheet
    By champita in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-10-2012, 01:24 PM
  6. Userform coding to mimic Form Button
    By copernicus in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-16-2009, 03:30 AM
  7. Coding Cmd Button in userform
    By Karkas in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 04-03-2009, 08:23 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