Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default copy from combobox to worksheet

I have programmed a few simple lines:

Private Sub ComboBox1_Change()
ComboBox1.Copy
ActiveSheet.Paste Destination:=Worksheets("RRS-FI tool").Range("G26:G26")
End Sub

The idea is that when I copy the (new) content of the ComboBox, the content
will be pasted in cell G26 of the worksheet. However, not the value of the
ComboBox is pasted, but another ComboBox.

If I look at the Clipboard, it is already a picture, not a value, although
the help text suggests that when copying from a ComboBox, the content value
is copied.

Any way to repair this?

Thanks! Anton
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,298
Default copy from combobox to worksheet

Private Sub ComboBox1_Change()
Range("G26") = Combobox1.Value
End Sub



"antonvanelteren" wrote:

I have programmed a few simple lines:

Private Sub ComboBox1_Change()
ComboBox1.Copy
ActiveSheet.Paste Destination:=Worksheets("RRS-FI tool").Range("G26:G26")
End Sub

The idea is that when I copy the (new) content of the ComboBox, the content
will be pasted in cell G26 of the worksheet. However, not the value of the
ComboBox is pasted, but another ComboBox.

If I look at the Clipboard, it is already a picture, not a value, although
the help text suggests that when copying from a ComboBox, the content value
is copied.

Any way to repair this?

Thanks! Anton

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 Value from ComboBox to Cell Tim Duell Excel Programming 5 November 28th 06 11:07 AM
How can I copy a Combobox with all items ? [email protected] Excel Programming 6 August 7th 06 12:28 PM
Copy with ComboBox Jari Excel Programming 0 December 4th 05 09:46 AM
Cut/Copy Combobox - I can't update MBais Excel Programming 2 July 22nd 05 02:26 PM
Copying Worksheet triggers Click event of combobox on another worksheet Robert[_20_] Excel Programming 0 January 23rd 04 07:40 PM


All times are GMT +1. The time now is 02:39 AM.

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"