Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default The Placement property does not seem to be working.

I have created an active X command button on a worksheet and set its Placement Property to 3 which means "free floating" (Do not move or re-size with cells).

However the button is both moved and re-sized with cells. It seems the value of the placement property makes no difference at all.

I would like the button to stay in the same place on the screen no matter what cells are currently showing.

What am I doing wrong?

Thanks!
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,514
Default The Placement property does not seem to be working.

I have created an active X command button on a worksheet and set its
Placement Property to 3 which means "free floating" (Do not move or
re-size with cells).

However the button is both moved and re-sized with cells. It seems
the value of the placement property makes no difference at all.

I would like the button to stay in the same place on the screen no
matter what cells are currently showing.

What am I doing wrong?

Thanks!


Controls on a worksheet will move on you whenever you hide/unhide
rows/cols. This may be cells where the controls are positioned OR it
may be Excel preventing them from shifting 'off' the sheet.

Better to design a cell to look/behave like a button and use an event
in the sheet code to run the macro.

--
Garry

Free usenet access at http://www.eternal-september.org
Classic VB Users Regroup!
comp.lang.basic.visual.misc
microsoft.public.vb.general.discussion


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default The Placement property does not seem to be working.

On Wednesday, September 18, 2013 9:55:05 AM UTC-4, wrote:
I have created an active X command button on a worksheet and set its Placement Property to 3 which means "free floating" (Do not move or re-size with cells).


However the button is both moved and re-sized with cells. It seems the value of the placement property makes no difference at all.


I would like the button to stay in the same place on the screen no matter what cells are currently showing.


What am I doing wrong?


Thanks!


In reply to GS:

The button stays with the cell(s) under it when it is created. If I scroll the cell off screen, the button goes with it. I have not hidden anything.

I want to be able to scroll the worksheet but have the button stay at the same position on the screen.

If I make a cell act like a button, it should & will move when the sheet is scrolled. That is the opposite of what needs to happen, the button should remain unmoved & that is what the Placement property is all about.

The properties list for the button contains the Placement property and it can be set to any valid xlPlacement value so I assume it is supposed to work. However, no matter what I set it to, the button changes sizes size and moves with the underlying cell.

Again I ask, what could I be doing wrong? (Or is Excel just not working correctly)?
  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,514
Default The Placement property does not seem to be working.

I wasn't sure of your exact scenario but originally intended to suggest
same as Claus did, and also suggest putting your controls as menuitems
so they're not on the sheet at all. Menuitems can be a custom menu or
toolbar, or in XL2007 and later, a custom tab on the ribbon. These
would be created when your file opens, and removed when it closes. My
preference for my projects is that they have there own menus, but I
also put controls above a Freeze Panes row when menus aren't
appropriate or warranted!

Note that the base for control coords is the worksheet, not the screen
as would be for a userform. IOW, when you create controls on worksheets
they become 'children' of their host sheet. The Placement options do
not apply to screen position, but rather aplly to sheet coord position.

Claus' value 15 is what works for his display and so you'd have to find
what works for yours. Problem is it may not work for other users of
your project and so is why I recommend going with custom menus!

--
Garry

Free usenet access at http://www.eternal-september.org
Classic VB Users Regroup!
comp.lang.basic.visual.misc
microsoft.public.vb.general.discussion




  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 28
Default The Placement property does not seem to be working.

Yet another idea is to put the button on a modeless userform.
But somewhere on the ribbon/menu system is probably better.
See http://rondebruin.nl/win/section2.htm for everything needed.

Best wishes Harald


  #7   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,514
Default The Placement property does not seem to be working.

Yet another idea is to put the button on a modeless userform.
But somewhere on the ribbon/menu system is probably better.
See http://rondebruin.nl/win/section2.htm for everything needed.

Best wishes Harald


Thanks, Harald! Yes, I sometimes do this to simulate a 'floating'
toolbar instead of using UI menus. I think, though, it's a bit complex
for this scenario <IMO!

--
Garry

Free usenet access at http://www.eternal-september.org
Classic VB Users Regroup!
comp.lang.basic.visual.misc
microsoft.public.vb.general.discussion


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
currentregion property not working properly TomE Excel Programming 2 October 31st 09 05:50 PM
2007: .top property not working with datalabels MrT Excel Programming 1 November 28th 06 01:46 AM
Hidden property not working when deleting a row? Upanisad Excel Programming 5 August 10th 05 07:40 PM
'Saved' Property not working Jim Rech Excel Programming 2 August 5th 04 11:39 PM


All times are GMT +1. The time now is 04:03 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"