Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 60
Default Placing commadbutton

How can I place a commandbutton just after column D as top = 0 by
vba ?
Any suggestion ? Tanks in advance.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 420
Default Placing commadbutton

Something like this will put a combobox over E1 (adjacent to D1):

Option Explicit
Sub testme()

Dim wks As Worksheet
Dim myCell As Range
Dim myCombo As OLEObject

Set wks = Worksheets("sheet1")
Set myCell = wks.Range("e1")

With myCell
Set myCombo = wks.OLEObjects.Add(ClassType:="Forms.ComboBox.1", _
Link:=False, _
DisplayAsIcon:=False, _
Left:=.Left, _
Top:=.Top, _
Width:=.Width, _
Height:=.Height)
End With

End Sub


On 01/13/2011 05:55, wrote:
How can I place a commandbutton just after column D as top = 0 by
vba ?
Any suggestion ? Tanks in advance.


--
Dave Peterson
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 60
Default Placing commadbutton


Thanks Dave, works charmingly !
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
Placing an UDF yshridhar Excel Worksheet Functions 11 August 17th 07 02:01 AM
placing.. 1st, 2nd, 3rd... fivermsg Excel Discussion (Misc queries) 1 March 14th 06 02:21 AM
placing Stig Excel Worksheet Functions 0 February 3rd 05 10:30 PM
placing controls Luc Benninger Excel Programming 3 April 16th 04 12:57 PM


All times are GMT +1. The time now is 07:02 PM.

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"