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

Hi

Seen similar sort of thing on forum, but now cant find it

I have large list of numbers. When i enter details of number in Ctrl+H to
find required number in column A, if found,it clicks on active cell. i then
want a macro to run automatically to copy the data in that cell to another
cell in the same row

Any idea's anyone

regards

--
bnt

Message posted via OfficeKB.com
http://www.officekb.com/Uwe/Forums.a...mming/200608/1

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6,953
Default copy selected cell

Maybe something like this. This works on column A

Sub FindNumber()
Columns(1).Select
Cells(Rows.Count, 1).End(xlUp)(2).Activate
Application.Dialogs(xlDialogFormulaFind).Show
if selection.rows.count = 1 then
ActiveCell.Copy Cells(ActiveCell.Row, 5)
end if
End Sub

--
Regards,
Tom Ogilvy


"brian thompson3001 via OfficeKB.com" wrote:

Hi

Seen similar sort of thing on forum, but now cant find it

I have large list of numbers. When i enter details of number in Ctrl+H to
find required number in column A, if found,it clicks on active cell. i then
want a macro to run automatically to copy the data in that cell to another
cell in the same row

Any idea's anyone

regards

--
bnt

Message posted via OfficeKB.com
http://www.officekb.com/Uwe/Forums.a...mming/200608/1


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 selected part number of text from one cell into another cell orewa Excel Discussion (Misc queries) 1 April 11th 08 01:30 PM
one cell contains selected criteria, then copy the row ? gcouch Excel Discussion (Misc queries) 6 November 23rd 07 12:46 AM
excel: if selected, copy cell from corresponding row davey-in-the-navy Excel Worksheet Functions 1 October 7th 07 12:09 PM
Macro to take selected cells times a selected cell Craig Excel Programming 4 October 24th 05 12:54 AM
Copy selected cell in column and fill in blanks Bluestar Excel Programming 2 June 15th 05 03:28 PM


All times are GMT +1. The time now is 09:04 AM.

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"