+ Reply to Thread
Results 1 to 7 of 7

Amend Code - Hyperlink Delete

  1. #1
    Forum Contributor
    Join Date
    09-21-2007
    Posts
    126

    Amend Code - Hyperlink Delete

    I have a button that populates a list box with a list of hyperlinks, which open the respective files. I now want the same layout but want to be able to delete the files using the hyperlinks in a list box and not open the file. here is the code behing the button.

    Please Login or Register  to view this content.
    i want to delete the hyperlinks destination.

    thanks in advance,

    Simon Green

  2. #2
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258
    Hello Simon,

    Do you want to clear the List Box entry or delete the actual file or both?

    Thanks,
    Leith Ross

  3. #3
    Forum Contributor
    Join Date
    09-21-2007
    Posts
    126

    Ahoy there!

    Hi, Leith

    I want to delete the file only. There is no need to delete the entry in the list box because it is populated by another list which is updated everytime the form loads. I think Closing the form after deletion would be suffice.

    Thanks,

    Simon Green

  4. #4
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258
    Hello Simon,

    This macro will permanently remove the file. If you want to delete the files by sending them to the Recycle Bin, let me know, and I'll give you the macro code to do it that way.
    Please Login or Register  to view this content.
    Sincerely,
    Leith Ross

  5. #5
    Forum Contributor
    Join Date
    09-21-2007
    Posts
    126

    Ahoy!!

    Thanks Leith,

    I have a problem though,

    This line of code is in red

    Please Login or Register  to view this content.
    and says invalid syntax.

    Cheers

    Simon Green

  6. #6
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258
    Hello Simon,

    Sorry about that, my typing skills aren't what I would like them to be. Here is what the code should be...
    Please Login or Register  to view this content.
    Sincerely,
    Leith Ross

  7. #7
    Forum Contributor
    Join Date
    09-21-2007
    Posts
    126

    Hahahah !!

    silly little space.....LOL

    thankyou works a treat, My project is getting closer to its finish now.

    I really appreciate the help,

    Simon Green

+ 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