Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Command Button keeps moving!

Everytime i go to Print Preview, CommandButton3 moves to the left abou
10 columns. why is this the only button moving? and how can i preven
it from moving?
Thanks

--
Message posted from http://www.ExcelForum.com

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Command Button keeps moving!

I have two quick options for you:

Option 1
1. in design mode, right click the button
2. Click Format Control
3. Click Properties
4. Select Don't move or size with cells

Option 2
program the controls location to reset after your code to
print preview is executed. You can see the location
settings by:
1. In design mod, right click the button
2. Click Properties
3. Write down the Hight, Left, Top, and Width values
4. Place the following in your code:
with CommandButton3
.Hight=27 'your value
.Left=153.75 'your value
.Top=67.5 'your value
.Width=59.25 'your value
End With

See if one of these work for you,

Dennis



-----Original Message-----
Everytime i go to Print Preview, CommandButton3 moves to

the left about
10 columns. why is this the only button moving? and

how can i prevent
it from moving?
Thanks,


---
Message posted from http://www.ExcelForum.com/

.

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,824
Default Command Button keeps moving!

xl2002????

http://support.microsoft.com/default...b;EN-US;838910
Controls move to the left of the worksheet in Microsoft Excel 2002

"ForSale <" wrote:

Everytime i go to Print Preview, CommandButton3 moves to the left about
10 columns. why is this the only button moving? and how can i prevent
it from moving?
Thanks,

---
Message posted from http://www.ExcelForum.com/


--

Dave Peterson

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Command Button keeps moving!

Thanks to both. I finally got it to stay there with the move AND size
with cells.
dennis, i like the idea of the code, however, i don't have a code to
print or print preview, it's just whenever the user clicks it. if this
current solution stops working, i'll use that code though.
thanks again.


---
Message posted from http://www.ExcelForum.com/

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
Command buttons linked to moving rows steal_92 Excel Discussion (Misc queries) 2 June 11th 09 03:04 PM
Excel VBA moving embedded command buttons jgcuk Excel Programming 0 June 29th 04 05:41 PM
Moving the Command Button alexm999[_18_] Excel Programming 3 January 31st 04 10:48 PM
Command Button vs Control Button RGibson Excel Programming 1 October 14th 03 02:24 AM
Command Button vs Form Button T K Excel Programming 4 August 26th 03 07:26 PM


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

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"