ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   selected cell - top left (https://www.excelbanter.com/excel-discussion-misc-queries/27652-selected-cell-top-left.html)

Ciara

selected cell - top left
 
Hello,

I have frozen panes in my excel screen with command buttons - when I click a
button I want a certain cell to be in the top left corner of the worksheet
(under the frozen pane)

any ideas on code for this?

thanks,

Bob Phillips

You could try something like

With ActiveWindow
If Panes.Count 1 Then
.Panes(4).VisibleRange.Cells(1, 1).Select
End If
End With


--
HTH

Bob Phillips

"Ciara" wrote in message
...
Hello,

I have frozen panes in my excel screen with command buttons - when I click

a
button I want a certain cell to be in the top left corner of the worksheet
(under the frozen pane)

any ideas on code for this?

thanks,





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

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com