Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 92
Default How to move pictures to the center of window?

Hi,
Earlier, I pasted one splash picture to the activesheet on Range ("A1")
and then to get it into the middle of the window I ran the code:
ActiveSheet.Shapes("PIC_WAIT_" & picNo).IncrementLeft
(Range(ActiveWindow.VisibleRange.Address).Columns. Width / 2) - PicWd /
2
ActiveSheet.Shapes("PIC_WAIT_" & picNo).IncrementTop
(Range(ActiveWindow.VisibleRange.Address).Rows.Hei ght / 2) - PicHt / 2

....where picNo of cource is the ID of the progress etc.


Now,
I don't want to run paste/delete (it kill the clipboard content). I'm
planning to have hidden progress bar pictures hidden on the sheets and
just make each after each visible.

Sice the zoom/display size and scrollings always can be different, I
need a good way of move the 10 progress pictures in the middle of the
current excel window.
Any ideas?


Further, can you see any problems with having hidden progress pics on
each sheet? (I will have the workbook and worksheet locked for the
user)

/Kind regards
tysk

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default How to move pictures to the center of window?

Personaly I would look at something like this as John Walkenbach's site,

http://www.j-walk.com/ss/excel/tips/tip34.htm

--
Regards,
Tom Ogilvy


"tskogstrom" wrote in message
oups.com...
Hi,
Earlier, I pasted one splash picture to the activesheet on Range ("A1")
and then to get it into the middle of the window I ran the code:
ActiveSheet.Shapes("PIC_WAIT_" & picNo).IncrementLeft
(Range(ActiveWindow.VisibleRange.Address).Columns. Width / 2) - PicWd /
2
ActiveSheet.Shapes("PIC_WAIT_" & picNo).IncrementTop
(Range(ActiveWindow.VisibleRange.Address).Rows.Hei ght / 2) - PicHt / 2

...where picNo of cource is the ID of the progress etc.


Now,
I don't want to run paste/delete (it kill the clipboard content). I'm
planning to have hidden progress bar pictures hidden on the sheets and
just make each after each visible.

Sice the zoom/display size and scrollings always can be different, I
need a good way of move the 10 progress pictures in the middle of the
current excel window.
Any ideas?


Further, can you see any problems with having hidden progress pics on
each sheet? (I will have the workbook and worksheet locked for the
user)

/Kind regards
tysk



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
Center All Pictures in Excel Cells Finny[_2_] Excel Discussion (Misc queries) 1 May 28th 10 05:27 AM
Excel arrows don't move black box but move the window Thebit Excel Discussion (Misc queries) 1 April 13th 09 02:06 AM
Pictures Move KJ Excel Discussion (Misc queries) 2 November 5th 08 08:58 PM
how do i center the worksheet in the viewing window? Tripp Excel Discussion (Misc queries) 0 March 2nd 07 03:02 PM
Pictures don't move when I sort list Eric Excel Worksheet Functions 2 February 5th 07 06:58 AM


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