Results 1 to 23 of 23

How do I know which sheets are to the RIGHT and LEFT to the Active Sheet?

Threaded View

  1. #21
    Registered User
    Join Date
    11-03-2008
    Location
    India
    MS-Off Ver
    Excel 2010
    Posts
    2,521

    Re: How do I know which sheets are to the RIGHT and LEFT to the Active Sheet?

    Dear NimRod and MarvinP,

    I respect your views and completely agree with you that this is too simple a request to move between the tabs but the reason of asking for its is to Save the Time by taking the pointer to always a particular cell from where there the person can take control of the Sheet for Printing the Sheets contents which are already formatted for the Print Preview..

    Hope you understand..!

    I have tried to make up some code of my own with great help from the Forum and TMShucks inital code however theres something which is missing as I am getting an error mentioning that "REFERNCE IS NOT VALID"

    Private Sub Worksheet_BeforeDoubleClick(ByVal Target As Range, Cancel As Boolean)
    
    Range("e1").Value = "Go to " & ActiveSheet.Previous.Name
    If Target.Address = "$E$1" Then
    'Target.Value = Time
    ActiveSheet.Hyperlinks.Add _
    Anchor:=Range("E1"), _
    Address:="", _
    SubAddress:=ActiveSheet.Previous.Name, _
    TextToDisplay:="Go to " & ActiveSheet.Previous.Name
    
    
    End If
    End Sub
    Would appreciate if someone could just tweak a little..
    I think instead of the "ActiveSheet.Hyperlinks.Add _" it needs to be the Previous SHeet...


    Warm Regards
    e4excel
    Last edited by e4excel; 04-04-2011 at 07:56 AM.

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