Using Copied Cell Value in Find

norts55

Board Regular
Joined
Jul 27, 2012
Messages
183
Hello,
Can someone tell me how to use the find function using the value that has been copied to the clipboard?

I have a simple code below. After I select column AA of Sheet Cost Codes, I need to jump into the find and use the value that I copied from cell C2.

Thanks in advance


VBA Code:
Sub Macro5()
'
' Macro5 Macro
'

'
    Sheets("Imported Bid List").Select
    Range("C2").Select
    Selection.Copy
    Sheets("Cost Codes").Select
    Columns("A:A").Select
End Sub
 

Excel Facts

How to create a cell-sized chart?
Tiny charts, called Sparklines, were added to Excel 2010. Look for Sparklines on the Insert tab.
Your whole macro could be written like.

VBA Code:
Sub Macro5()
    a = Range("'Imported Bid List'!c2")
    'now do what you want with a using find etc
End Sub

no need to access the clipboard
 
Upvote 0

Forum statistics

Threads
1,215,036
Messages
6,122,794
Members
449,095
Latest member
m_smith_solihull

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