Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default Copy to windows clipboard

I want a macro that searches for data by finding a cell value and
choosing the data one cell to the right and copying it so I can paste
it in another program. I needs to pause while I switch to the other
program(s).

Then it will continue and go to another spot where I will look for
more data. This is harder because I don't know which cells are used.
That is in the Excel form the comment area has several cells and
people use different ones.

Can I do this, and can I call another macro after that.

Thanks so much.

Bill
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Copy to windows clipboard

Sub FindData()
Dim rng as Range, rng1 as Range, Data
Data = Range("A1")
if isempty(Range("A1") then Exit sub
set rng = cells.Find(What:=data, After:=Range("A1"))
if not rng is nothing then
if rng.Address = "$A$1" then
msgbox "Not found, exiting"
exit sub
End if
set rng1 = rng.offset(0,1)
End if
rng1.copy

Application.OnTime Now + TimeValue("00:15"), "FindData"

End sub

put the data to find in cell A1

Change 15 seconds to the time you need. New data to be found is in A1.
Assumes you will not be looking for the same item in multiple cells. You
will have to paste in the other application - otherwise play with sendkeys
and wait

--
Regards,
Tom Ogilvy



"BillShut" wrote in message
om...
I want a macro that searches for data by finding a cell value and
choosing the data one cell to the right and copying it so I can paste
it in another program. I needs to pause while I switch to the other
program(s).

Then it will continue and go to another spot where I will look for
more data. This is harder because I don't know which cells are used.
That is in the Excel form the comment area has several cells and
people use different ones.

Can I do this, and can I call another macro after that.

Thanks so much.

Bill



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 to copy/paste without using clipboard? Ming[_2_] Excel Discussion (Misc queries) 12 October 5th 09 02:42 PM
Windows Media Player disables Clipboard in Excel jmaskew Excel Discussion (Misc queries) 0 August 29th 08 01:56 AM
clipboard copy & paste SAGknot Excel Discussion (Misc queries) 1 June 12th 07 01:36 PM
copy to the clipboard and into another workbook Mark Dvorkin Excel Discussion (Misc queries) 2 February 24th 06 02:41 AM
Can't copy without clipboard open Bill Williams Excel Discussion (Misc queries) 0 January 4th 05 04:41 PM


All times are GMT +1. The time now is 10:12 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"