Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 17
Default Help needed moving a command button

Hi I need a code that moves a command button named AdjLeft, I cannot use
increment as the position depends on the width of column a A.

EG: if column a is 22.86 wide the position of button AdjLeft needs to be say
15.25

I have tried various ways but nothing works!!!

Many thanks in advance
Neil



  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 112
Default Help needed moving a command button

if column a is 22.86 wide the position of button AdjLeft needs to be say
15.25

Either of the following lines would make such an adjustment. You can decide
which one is most appropriate.

ActiveSheet.Shapes("AdjLeft").Left = ActiveSheet.Columns("A:A").Width - 7.61
ActiveSheet.Shapes("AdjLeft").Left = ActiveSheet.Columns("A:A").Width * 0.667


Regards,
Vic Eldridge


"Karoo News" wrote:

Hi I need a code that moves a command button named AdjLeft, I cannot use
increment as the position depends on the width of column a A.

EG: if column a is 22.86 wide the position of button AdjLeft needs to be say
15.25

I have tried various ways but nothing works!!!

Many thanks in advance
Neil




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
Moving data to another file - help needed JTWarthogs Excel Discussion (Misc queries) 1 May 1st 09 01:35 PM
Command Button Error - Help Needed Urgently Please Salman Excel Worksheet Functions 2 March 7th 07 10:24 AM
Excel - keep a command button from moving after code runs? Dave Little Excel Programming 1 October 28th 05 02:16 PM
Command Button keeps moving! ForSale[_31_] Excel Programming 3 August 12th 04 03:53 AM
Moving the Command Button alexm999[_18_] Excel Programming 3 January 31st 04 10:48 PM


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