Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 32
Default Macro - Pasting clipboard in a find box

Try something like this.

Private Sub CommandButton1_Click()

Range("A200").Select
ActiveSheet.Paste
TextBox1 = Range("A200")

End Sub


"Bobby" wrote in message
...
I am trying to write a macro that will paste whatever is
on the clipboard into the Find box. I am having a hard
time. please help with the line of code.
Thanks.



  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 32
Default Macro - Pasting clipboard in a find box

thy something like this
you can skip the find box and use your own find.


Range("A200").Select
ActiveSheet.Paste
tmpText = Range("A200").Value

Cells.Find(What:=tmpText, After:=ActiveCell, LookIn:=xlFormulas,
LookAt:= _
xlPart, SearchOrder:=xlByRows, SearchDirection:=xlNext,
MatchCase:=False) _
.Activate






"bobby" wrote in message
...
That did not work. I am trying to have it paste into the
Find and replace dialogue box.
-----Original Message-----
Try something like this.

Private Sub CommandButton1_Click()

Range("A200").Select
ActiveSheet.Paste
TextBox1 = Range("A200")

End Sub


"Bobby" wrote in message
...
I am trying to write a macro that will paste whatever is
on the clipboard into the Find box. I am having a hard
time. please help with the line of code.
Thanks.



.



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
How can I turn off the clipboard icon when cut and pasting? Caroilin Setting up and Configuration of Excel 1 September 21st 06 05:40 PM
Why are my cells locking after pasting from office clipboard? Wilesworld Excel Discussion (Misc queries) 0 August 11th 06 08:36 PM
Pasting multiple cells using Office Clipboard doughboy Excel Discussion (Misc queries) 2 July 22nd 05 06:22 AM
Pasting from clipboard-how to control text-to-columns delimiting stebro Excel Discussion (Misc queries) 1 June 15th 05 05:31 PM
Excel clipboard should allow pasting of formulae not just values Desperate Don Excel Discussion (Misc queries) 0 April 28th 05 05:54 PM


All times are GMT +1. The time now is 10:18 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"