Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Assigning a macro to a forms button (help)

I would like to assign a macro to a forms button that, when clicked,
it will take me to a specific cell on a sheet called Invoices. I would
however like the cell that to which it takes me to be positioned in
the top left position on the sheet when I get there. If it helps I
have named each of the cells that i want the buttons to take me to.
the first button should take me to the named range "week1" and so on.
Any help with this would be appreciated. I know its a simple thing but
I cant get my head around this for some reason.

TIA
Dave
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,123
Default Assigning a macro to a forms button (help)

Use a macro with this line

Application.Goto Sheets("Invoices").Range("G20"), True


--
Regards Ron de Bruin
http://www.rondebruin.nl


"JazzBlues" wrote in message ...
I would like to assign a macro to a forms button that, when clicked,
it will take me to a specific cell on a sheet called Invoices. I would
however like the cell that to which it takes me to be positioned in
the top left position on the sheet when I get there. If it helps I
have named each of the cells that i want the buttons to take me to.
the first button should take me to the named range "week1" and so on.
Any help with this would be appreciated. I know its a simple thing but
I cant get my head around this for some reason.

TIA
Dave



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Assigning a macro to a forms button (help)

In the macro assigned to the button:

Application.GoTo Destination:=Range("Week1"),Scroll:=True

Such code should be in a general module, not a sheet or the ThisWorkbook
module.
--
Regards,
Tom Ogilvy



"JazzBlues" wrote in message
...
I would like to assign a macro to a forms button that, when clicked,
it will take me to a specific cell on a sheet called Invoices. I would
however like the cell that to which it takes me to be positioned in
the top left position on the sheet when I get there. If it helps I
have named each of the cells that i want the buttons to take me to.
the first button should take me to the named range "week1" and so on.
Any help with this would be appreciated. I know its a simple thing but
I cant get my head around this for some reason.

TIA
Dave



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Assigning a macro to a forms button (help)

Thanks Ron That worked like a charm
Dave


On Sun, 23 Oct 2005 23:32:19 +0200, "Ron de Bruin"
wrote:

Use a macro with this line

Application.Goto Sheets("Invoices").Range("G20"), True


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
Assigning a macro to a button hberg Excel Worksheet Functions 1 January 27th 10 10:31 PM
Assigning A Macro to A Button Holly Excel Worksheet Functions 1 January 18th 08 10:04 AM
assigning a macro to a button Darby Excel Discussion (Misc queries) 2 February 10th 06 05:05 PM
assigning macro to button BorisS Excel Discussion (Misc queries) 2 September 12th 05 05:08 AM
Assigning a macro to a button Junkyard Engineer Excel Programming 3 June 9th 05 02:00 PM


All times are GMT +1. The time now is 04:31 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"