Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / New Users / December 2004

Tip: Looking for answers? Try searching our database.

Please help correct a simple error

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
lwhite - 09 Dec 2004 13:42 GMT
I am trying to place a value into a string and then  
place that value in a cell. I don't what I did wrong but
I am sure it is simple code. This happens in a
CommandButton. I have a combo box on the sheet that has a
drop down list in it. I select the item and then click
the button. I select the cell, place the vlaue and then
select another cell. That is it. I am building towards a
larger total function for the button.

Dim myDesc As String

   Set myDesc = Me.ComboBox2
 
   Sheets("Quote").Select
   Range("J17").Select
   Range("J17").Value = myDesc
   
   Sheets("Quote").Select
   Range("G17").Select
Art - 09 Dec 2004 21:39 GMT
Try this:

Sub temp()
 Dim x As ComboBox
 Set x = Me.ComboBox1
 Range("A2") = x
 Range("B7").Select
End Sub

                  Art
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.