Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 16
Default how do I copy from textbox or combobox into a cell

Hi,

I'm trying to create a userform with textboxes and comboboxes, but don't
know how to cut & paste from a textbox or combobox into a single cell on the
worksheet using a commandbutton.

Can someone help me please?


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 923
Default how do I copy from textbox or combobox into a cell

Use an event for the commandbutton to copy the contents of the textbox or
combobox.

Eg.....

Private Sub CommandButton1_Click()
Worksheets("Sheet1").Range("A1") = TextBox1.Value
End Sub


--
Cheers
Nigel



"Peterke" wrote in message
...
Hi,

I'm trying to create a userform with textboxes and comboboxes, but don't
know how to cut & paste from a textbox or combobox into a single cell on

the
worksheet using a commandbutton.

Can someone help me please?




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
copy cell font colour to textbox? Sophie Excel Discussion (Misc queries) 0 January 28th 09 01:03 AM
combobox /textbox value flow23 Excel Discussion (Misc queries) 0 April 19th 06 03:18 PM
copy cell contents to a textbox 255 characters mcadle Excel Programming 7 September 7th 04 07:39 AM
Combobox with textbox and Commandbutton Stift[_4_] Excel Programming 4 May 19th 04 11:57 PM
Userform ComboBox and TextBox help!!! Pete Excel Programming 1 February 13th 04 09:13 PM


All times are GMT +1. The time now is 06:56 PM.

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"