Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 22
Default Jumping to a location in an excel sheet.

Hello,

I created a sheet for our sales department to track their quotations for a
year. I froze the top few rows with instructions and column headings, but
now that we are 5 months in there is a LOT of data accumulating for some
people.

What I am looking to do is have a feature similar to jumping to a file
location via a hyperlink in a Word document, but I would like a button that
could be pressed to take you to the last entry.

What is the easiest way I can do this?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 709
Default Jumping to a location in an excel sheet.

Griff, try Ctrl+the down arrow or Ctrl+end
--
Paul B
Always backup your data before trying something new
Please post any response to the newsgroups so others can benefit from it
Feedback on answers is always appreciated!
Using Excel 2002 & 2003

"Griff" wrote in message
...
Hello,

I created a sheet for our sales department to track their quotations for a
year. I froze the top few rows with instructions and column headings, but
now that we are 5 months in there is a LOT of data accumulating for some
people.

What I am looking to do is have a feature similar to jumping to a file
location via a hyperlink in a Word document, but I would like a button
that
could be pressed to take you to the last entry.

What is the easiest way I can do this?



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 22
Default Jumping to a location in an excel sheet.

Actually since I am asking the professionals here...
I have a date column in this database, would I need to get VB script written
if I wanted to have the months located in the top frozen rows of this sheet
and make them move the sheet to the first entry in down that matched that
month?

"Griff" wrote:

Hello,

I created a sheet for our sales department to track their quotations for a
year. I froze the top few rows with instructions and column headings, but
now that we are 5 months in there is a LOT of data accumulating for some
people.

What I am looking to do is have a feature similar to jumping to a file
location via a hyperlink in a Word document, but I would like a button that
could be pressed to take you to the last entry.

What is the easiest way I can do this?

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 718
Default Jumping to a location in an excel sheet.

Are your month headers plain text or Excel dates formatted "mmm" ?

--
AP


  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Jumping to a location in an excel sheet.

you can insert a module in VBA and then put a button (from the forms
toolbar) on the excel sheet....you just need to attach the macro that
you write in VBA to the button. For the code you can use something
like this:


Sub LastCell()
Range("A3").Select
ActiveCell.End(xlToRight).Select
ActiveCell.End(xlDown).Select
End Sub


---Substitute A3 for the top left cell in your spreadsheet. If you
copy this exact code into a module in VBA your macro will be called
"LastCell." Attach this to the button and you are set. If you want to
go to the first column of the last entry simply leave out the
ActiveCell.End(xlRight).Select portion of the code.

As far as your second post goes, I have no clue what you are talking
about.



  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 184
Default Jumping to a location in an excel sheet.

Hi, give this a try, it is modified from "KL".

'Newsgroups: microsoft.public.Excel.programming
'From: "KL"
'Date: Fri, 7 Jan 2005 16:36:46 +0100
'Local: Fri, Jan 7 2005 7:36 am
'Subject: SpecialCells (xlLastCell)

Sub LastCell()
Dim ws As Worksheet
Dim myRow&, myCol&, Rng As Range
Set ws = ActiveSheet
Set Rng = ws.Cells
myRow = Intersect( _
Rng.Find("*", Rng(1), xlValues, xlWhole, xlByRows, _
xlPrevious).EntireRow, _
Rng.Find("*", Rng(1), xlValues, xlWhole, xlByColumns, _
xlPrevious).EntireColumn).Row

myCol = Rng(1).Cells(myRow, Columns.Count) _
.End(xlToLeft).Column

On Error Resume Next

'Takes you to the first cell in the last row used
Intersect(Rows(myRow), Columns(1)).Select

'Takes you to the last column entry in last row used
'Intersect(Rows(myRow), Columns(myCol)).Select

On Error GoTo 0
Err.Clear
End Sub

HTH--Lonnie Miller


wrote:
you can insert a module in VBA and then put a button (from the forms
toolbar) on the excel sheet....you just need to attach the macro that
you write in VBA to the button. For the code you can use something
like this:


Sub LastCell()
Range("A3").Select
ActiveCell.End(xlToRight).Select
ActiveCell.End(xlDown).Select
End Sub


---Substitute A3 for the top left cell in your spreadsheet. If you
copy this exact code into a module in VBA your macro will be called
"LastCell." Attach this to the button and you are set. If you want to
go to the first column of the last entry simply leave out the
ActiveCell.End(xlRight).Select portion of the code.

As far as your second post goes, I have no clue what you are talking
about.


  #7   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 22
Default Jumping to a location in an excel sheet.

Plain Text, but could be easily converted

"Ardus Petus" wrote:

Are your month headers plain text or Excel dates formatted "mmm" ?

--
AP



  #8   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 22
Default Jumping to a location in an excel sheet.

Thank you I will give this a try.

For the second part of my post...
I have a cell with each month on the top of the sheet, with an adjacent cell
which adds up all the information entered with a date corresponding with that
month.

I was wondering how hard it would be to make a function where I could click
on one of the month cells as a hyperlink and it would make the active cell
the first cell in a specific column that matched that month.

" wrote:

you can insert a module in VBA and then put a button (from the forms
toolbar) on the excel sheet....you just need to attach the macro that
you write in VBA to the button. For the code you can use something
like this:


Sub LastCell()
Range("A3").Select
ActiveCell.End(xlToRight).Select
ActiveCell.End(xlDown).Select
End Sub


---Substitute A3 for the top left cell in your spreadsheet. If you
copy this exact code into a module in VBA your macro will be called
"LastCell." Attach this to the button and you are set. If you want to
go to the first column of the last entry simply leave out the
ActiveCell.End(xlRight).Select portion of the code.

As far as your second post goes, I have no clue what you are talking
about.


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
location bar display in excel sheet location bar Excel Discussion (Misc queries) 0 October 31st 08 10:13 AM
Macro - save to current location vs excel default location leezard Excel Discussion (Misc queries) 0 October 28th 08 03:04 PM
Jumping colums in Excel 2000 Lolly Excel Worksheet Functions 5 November 22nd 05 03:31 AM
Is there away to keep "auto save" from jumping to the first work sheet in the work book? Marc New Users to Excel 2 April 21st 05 01:27 AM
Highlighted cell jumping to cursor location snowedin Excel Discussion (Misc queries) 0 January 19th 05 09:16 PM


All times are GMT +1. The time now is 09:13 AM.

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

About Us

"It's about Microsoft Excel"