#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 123
Default application.goto

hi.

i have a macro that inserts a line for the user. then the user has to go to
column AC to enter a number.

so i'd like the insert macro to end with logic that puts the cursor where it
needs to be.

i tried

Application.Goto Reference:=Worksheets("Assortment").Cells(lr, "ac")

(lr is defined as the row my cursor was on when i started the macro which
lets assume the value is 46)



it works great in that my "cursor" is on cell AC46 but its not in my view.
i can see its "selected" and sitting on AC46 in the upper left corner but
again the screen didn't move me there so the user can do what they need to do.



i tried scroll=left at the end of the sentence but it moved ac46 to the
upper left corner of my screen which is a little confusing. Its as if i
just want to scroll left or right to get the cell into view.



thanks in advance for any and all help

Tami

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 695
Default application.goto

Application.Goto Reference:=Worksheets("sheet14").Cells(lr, "ac"),scroll:=true


"Tami" skrev:

yep, it works and i can see my cursor on cell(lr,"ac").
But if i start with my cursur/screen in columns BF for example (somewhere
off to the far right), it doesn't bring the cell into view...does that make
sense?

"Don Guillett" wrote:

I just tested this
Sub gothere()
lr = ActiveCell.Row
Application.Goto Reference:=Worksheets("sheet14").Cells(lr, "ac")
End Sub

--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"Tami" wrote in message
...
hi.

i have a macro that inserts a line for the user. then the user has to go
to
column AC to enter a number.

so i'd like the insert macro to end with logic that puts the cursor where
it
needs to be.

i tried

Application.Goto Reference:=Worksheets("Assortment").Cells(lr, "ac")

(lr is defined as the row my cursor was on when i started the macro which
lets assume the value is 46)



it works great in that my "cursor" is on cell AC46 but its not in my view.
i can see its "selected" and sitting on AC46 in the upper left corner but
again the screen didn't move me there so the user can do what they need to
do.



i tried scroll=left at the end of the sentence but it moved ac46 to the
upper left corner of my screen which is a little confusing. It€„¢s as if
i
just want to scroll left or right to get the cell into view.



thanks in advance for any and all help

Tami


.

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 123
Default application.goto

thank you both:-)
tami


"excelent" wrote:

Application.Goto Reference:=Worksheets("sheet14").Cells(lr, "ac"),scroll:=true


"Tami" skrev:

yep, it works and i can see my cursor on cell(lr,"ac").
But if i start with my cursur/screen in columns BF for example (somewhere
off to the far right), it doesn't bring the cell into view...does that make
sense?

"Don Guillett" wrote:

I just tested this
Sub gothere()
lr = ActiveCell.Row
Application.Goto Reference:=Worksheets("sheet14").Cells(lr, "ac")
End Sub

--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"Tami" wrote in message
...
hi.

i have a macro that inserts a line for the user. then the user has to go
to
column AC to enter a number.

so i'd like the insert macro to end with logic that puts the cursor where
it
needs to be.

i tried

Application.Goto Reference:=Worksheets("Assortment").Cells(lr, "ac")

(lr is defined as the row my cursor was on when i started the macro which
lets assume the value is 46)



it works great in that my "cursor" is on cell AC46 but its not in my view.
i can see its "selected" and sitting on AC46 in the upper left corner but
again the screen didn't move me there so the user can do what they need to
do.



i tried scroll=left at the end of the sentence but it moved ac46 to the
upper left corner of my screen which is a little confusing. It€„¢s as if
i
just want to scroll left or right to get the cell into view.



thanks in advance for any and all help

Tami


.



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
? IF & GOTO ? Karen D Excel Worksheet Functions 17 September 2nd 09 10:58 PM
? IF and GOTO ? Karen D Excel Worksheet Functions 2 September 1st 09 07:57 PM
Application.Goto Reference gets error 1004 cellist Excel Discussion (Misc queries) 4 December 25th 08 09:32 PM
Goto Tab Ed Davis Excel Discussion (Misc queries) 3 September 4th 08 10:35 PM
If.....Then GoTo....... Alec H Excel Discussion (Misc queries) 4 February 22nd 06 02:42 PM


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

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"