ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Find top of worksheet (https://www.excelbanter.com/excel-programming/274671-find-top-worksheet.html)

D. McDonough

Find top of worksheet
 
I've added a form to my spreadsheet. I'd like it to start
at the top right hand corner of the spreadsheet.

How can I find the value for "UserForm.Top" regardless of
the number of toolbars the user has shown and regardless
of if the row and column headers are displayed?

I've tried the following:

UserForm.Move 584, ActiveSheet.Cells(1).Top

but this puts the form way up in the title bar/tool bars
area.

Thanks!

Debbie

Ron de Bruin

Find top of worksheet
 
http://www.cpearson.com/excel/FormPosition.htm
Check out this site

--

Regards Ron de Bruin
(Win XP Pro SP-1 XL2002 SP-2)
www.rondebruin.nl

"D. McDonough" wrote in message
...
I've added a form to my spreadsheet. I'd like it to start
at the top right hand corner of the spreadsheet.

How can I find the value for "UserForm.Top" regardless of
the number of toolbars the user has shown and regardless
of if the row and column headers are displayed?

I've tried the following:

UserForm.Move 584, ActiveSheet.Cells(1).Top

but this puts the form way up in the title bar/tool bars
area.

Thanks!

Debbie





All times are GMT +1. The time now is 08:11 PM.

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