Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 12
Default skip to worksheet

I appreciate your help with this problem:
In A column I have a list of worksheets,
on double click on the cell I want to skip to proper worksheet. I have
something like this:
Private Sub Click()
Dim Wk As Worksheet
Dim WksName As String
For Each Wk In Worksheets
WksName = Range(A5).Value
Wk.Activate = Wk.Range("A5").Value

Next

End Sub
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 857
Default skip to worksheet

Hi,

In the worksheet code module, something like this:

Private Sub Worksheet_BeforeDoubleClick(ByVal Target As Range, Cancel As
Boolean)
If Target.Column < 1 Then Exit Sub
Dim ws As Worksheet
On Error Resume Next
Set ws = Worksheets(Target.Value)
If Not ws Is Nothing Then ws.Activate
End Sub


--
Hope that helps.

Vergel Adriano


"raraschek" wrote:

I appreciate your help with this problem:
In A column I have a list of worksheets,
on double click on the cell I want to skip to proper worksheet. I have
something like this:
Private Sub Click()
Dim Wk As Worksheet
Dim WksName As String
For Each Wk In Worksheets
WksName = Range(A5).Value
Wk.Activate = Wk.Range("A5").Value

Next

End Sub

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Worksheet to Worksheet skip blanks Treadstone Excel Worksheet Functions 3 January 14th 10 05:16 PM
skip to worksheet raraschek Excel Worksheet Functions 1 March 28th 07 02:42 PM
Skip to next input cell on protected worksheet Fred Excel Programming 6 August 17th 06 02:17 PM
skip printing worksheet rw Excel Discussion (Misc queries) 4 January 23rd 06 07:46 PM
skip worksheet davegb Excel Programming 6 May 11th 05 12:01 PM


All times are GMT +1. The time now is 04:40 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"