Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 15
Default Centering In Screen

Hi,

I have a simple macro that create a rectangle with some text ("Working...")
that is displayed when I have any macro running to alert th user.
How do I get the rectangle in the centre of the the screen?

All help is appreciated.

J
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Centering In Screen

ActiveWindow.VisibleRange

will give you the range that is visible. From this you should be able to
figure out what cell you want to position your rectangle over and consider
the size of the rectangle. If you can't figure it out, post back with some
details.

--
Regards,
Tom Ogilvy


"Jimbola" wrote in message
...
Hi,

I have a simple macro that create a rectangle with some text

("Working...")
that is displayed when I have any macro running to alert th user.
How do I get the rectangle in the centre of the the screen?

All help is appreciated.

J



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
Consider space in centering Eric_NY Excel Discussion (Misc queries) 1 March 11th 10 10:24 PM
Centering Centering a Title New Users to Excel 6 December 13th 06 10:02 PM
centering items yoursagain2002 Excel Worksheet Functions 1 August 11th 06 04:16 AM
Centering comments flyingrhino Excel Worksheet Functions 0 April 11th 06 07:25 AM
Centering Toolbars James L[_3_] Excel Programming 1 April 14th 04 02:37 PM


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