Wrox Programmer Forums
|
Excel VBA Discuss using VBA for Excel programming.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Excel VBA section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old May 22nd, 2006, 09:59 AM
Authorized User
 
Join Date: Mar 2006
Posts: 21
Thanks: 0
Thanked 0 Times in 0 Posts
Default Combobox

How do I copy the value of a comboBox selection to a worksheet cell.

The following does not seem to be the correct format.


ComboBox1.copy Destination:=Worksheets("sheet1").Range("A1")

Any takers?

 
Old May 22nd, 2006, 02:50 PM
Registered User
 
Join Date: May 2006
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi Stepdev,
Just found this forum whilst googling for some help on VBA.
Saw your post, so thought I'd reply
I have used:
Worksheets("sheet1").Range("a1").Value = ComboBox1.Value in the past. Basically select the value in the combo box and then press a command button that runs the code.
See how it goes.






Similar Threads
Thread Thread Starter Forum Replies Last Post
combobox nagarajuballa Java GUI 0 August 13th, 2008 03:49 AM
Filling Combobox with value from other Combobox ayazhoda Access VBA 6 June 5th, 2007 04:58 AM
New to ComboBox adriant42 Excel VBA 3 August 23rd, 2004 12:32 PM
combobox HenkRog VS.NET 2002/2003 2 March 17th, 2004 01:07 PM
ComboBox: HELP! ;) ashley_y ADO.NET 1 December 29th, 2003 10:44 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.