copy cell after clicking combobox

davidausten

New Member
Joined
Sep 1, 2017
Messages
35
Office Version
  1. 2016
Platform
  1. Windows
Ive got a Combobox that gets its entries from a dynamic range called selections. What I am missing is that I want to copy the cell over in the next column to the clipboard. Ive tried several things but havent gotten anything to work. Ive tried

Code:
Select Case Choose
       Case me.combobox1.value = "test"
            worlsheets(sheet1.select.range("e3").copy)
       end case
end select

Like I said all I want is to copy the cell then I take the contents to another program to paste the value.
 

Excel Facts

Why does 9 mean SUM in SUBTOTAL?
It is because Sum is the 9th alphabetically in Average, Count, CountA, Max, Min, Product, StDev.S, StDev.P, Sum, VAR.S, VAR.P.
Select Case True
Case me.combobox1.value = "test"
sheet1.range("e3").copy
end case
end select
 
Upvote 0
thanks BobU tried inserting your code and compiling but get an error on end case

VBA Code:
Private Sub ComboBox1_Change()
With ComboBox1

Select Case True

Case Me.ComboBox1.Value = "test"

Sheet1.Range("e3").Copy

End case

End Select

End With

End Sub
 
Upvote 0
heres what i got to compile but it doesnt copy anything because if i try to paste in another cell it pastes nothing.. tried to post the entire workbook but i guess i dont have permission or not enough posts.

VBA Code:
Private Sub ComboBox1_Change()
With ComboBox1

Select Case Decide

Case Me.ComboBox1.Value = "Flat Payment"

Sheet1.Range("I2").Copy



End Select

End With

End Sub
 
Upvote 0

Forum statistics

Threads
1,214,812
Messages
6,121,702
Members
449,048
Latest member
81jamesacct

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top