+ Reply to Thread
Results 1 to 5 of 5

Basic Hyperlink loop

  1. #1
    Registered User
    Join Date
    10-04-2011
    Location
    Denmark
    MS-Off Ver
    Excel 2007
    Posts
    3

    Basic Hyperlink loop

    Hey guys..

    I am very new to VBA programming, so it might not be the right way im trying to solve my problem here. Nevertheless i need some help figuring out why my code stops after first loop..

    I have in my sheet a table, where i want to be able to make an "X" in column L with a hyperlink so i can delete that specific entire row..

    the error is at : If Target.range.Address = "$L$" & Number & "" Then

    Please Login or Register  to view this content.
    Last edited by Smilykoch; 10-04-2011 at 06:09 AM.

  2. #2
    Forum Guru
    Join Date
    08-26-2007
    Location
    London
    Posts
    4,606

    Re: Basic Hyperlink loop

    Probably because once it has deleted the hyperlink it is then looking for a non-existent target. Why do you need to use hyperlinks? Anyway, try this version:
    Please Login or Register  to view this content.
    Last edited by StephenR; 10-04-2011 at 05:19 AM.

  3. #3
    Registered User
    Join Date
    10-04-2011
    Location
    Denmark
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: Basic Hyperlink loop

    I dont really need to use hyperlinks, i just tought it was the easiest way to make a "button like" way of running a piece of vba code.. :o

  4. #4
    Forum Guru
    Join Date
    08-26-2007
    Location
    London
    Posts
    4,606

    Re: Basic Hyperlink loop

    See above for re-worked code, but it would probably be easier to use double-click or right-click and then no need to add hyperlinks or anything like that.

  5. #5
    Registered User
    Join Date
    10-04-2011
    Location
    Denmark
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: Basic Hyperlink loop

    Thx.. it worked like a charm..

+ 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