Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Birmangirl
 
Posts: n/a
Default I'd like to create a list box containing "jumps" to other cells...

....I have a simple calendar spreadsheet in Excel 2002 (12 months on one
sheet, arranged vertically). I'd like to add a list box in A1 that contains
months - when you choose one, the cursor jumps to the beginning of that
month? I'm sure this is possible - the best way please?

Thanks in advance
Amanda
  #2   Report Post  
Dave Peterson
 
Posts: n/a
Default

Maybe you could set up a list of month names on another sheet.

Then use Data|validation in A1--and use that list as the source.
See Debra Dalgleish's site to see how to point to a range on another sheet:
http://www.contextures.com/xlDataVal01.html#Create

Then create names for 12 cells on that calendar sheet.
(January, February, ..., December)
Deb's site, again:
http://www.contextures.com/xlNames01.html#NameBox

Then rightclick on the worksheet tab that has the calendar and select view
code. Paste this in:

Option Explicit
Private Sub Worksheet_Change(ByVal Target As Range)

If Target.Cells.Count 1 Then Exit Sub
If Intersect(Target, Me.Range("a1")) Is Nothing Then Exit Sub

On Error Resume Next
Application.Goto Target.Value, scroll:=True
If Err.Number < 0 Then
MsgBox "Design error!!!"
Err.Clear
End If
On Error GoTo 0

End Sub

(If you use this with xl97, it won't work--it was a bug that was fixed in xl2k.)



Birmangirl wrote:

...I have a simple calendar spreadsheet in Excel 2002 (12 months on one
sheet, arranged vertically). I'd like to add a list box in A1 that contains
months - when you choose one, the cursor jumps to the beginning of that
month? I'm sure this is possible - the best way please?

Thanks in advance
Amanda


--

Dave Peterson
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
Create a cascading list box using Excel JPB Excel Discussion (Misc queries) 1 February 24th 05 08:43 PM
Is there a way to create a drop-down list of links in Excel? t_boden Excel Worksheet Functions 1 February 3rd 05 06:14 PM
The pivot tables 101 article says to use the "Create List" comman. cgnoland03 New Users to Excel 2 January 14th 05 11:39 PM
create a drop down list with the source from a different workbook Sampath Excel Discussion (Misc queries) 2 January 8th 05 07:57 PM
How do you create a drop down list? Aviator Excel Discussion (Misc queries) 2 December 28th 04 03:07 PM


All times are GMT +1. The time now is 01:07 PM.

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"