+ Reply to Thread
Results 1 to 6 of 6

Hyperlink buttons don't work out of design mode.

Hybrid View

  1. #1
    Forum Expert Paul's Avatar
    Join Date
    02-05-2007
    Location
    Wisconsin
    MS-Off Ver
    2016/365
    Posts
    6,887

    Re: Hyperlink buttons don't work out of design mode.

    Hi Achtung_boy, welcome to the forum.

    Instead of using hyperlinks with command buttons, why not just use a macro behind the command buttons? You just need to go into design mode, right click on each 'Home' button and choose View Code. Add the following one line of code to each:
    Sheets("Front page").Activate
    Also, your delete macro could be simplified to:
    Sub AskAndDo()
    If MsgBox("Are you sure ?", vbYesNo + vbQuestion) = vbNo Then
        Exit Sub
    Else
        Range("G2:G23,A2:E23").ClearContents
    End If
    End Sub
    Or even
    Sub AskAndDo()
    If MsgBox("Are you sure ?", vbYesNo + vbQuestion) = vbYes Then Range("G2:G23,A2:E23").ClearContents
    End Sub
    Last edited by Paul; 08-02-2009 at 08:46 PM.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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