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

Can I look for a text value in a sheet and copy it to another location.
For Example,

I looking for all the "Cat" and want to copy it to another locations
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default If statements

Hello,
Use a macro with a code something like
public sub FindCatAndPaste()
Cells.Find(What:="cat", After:=ActiveCell, LookIn:=xlFormulas, LookAt:= _
xlPart, SearchOrder:=xlByRows, SearchDirection:=xlNext,
MatchCase:=False _
, SearchFormat:=False).Activate
Selection.Copy
Range("L19").Select
ActiveSheet.Paste
End Sub

abd then use it any way you wish..

Pranav Wagh

"The Real Stuff Is oUT oF tHE bOX"

http://blogs.msdn.com/pranavwagh


--------------------
Thread-Topic: If statements
thread-index: AcY+9UsEXgKtcsXfTLKQZUGlxiwcmw==
X-WBNR-Posting-Host: 71.153.222.238
From: ?B?TmV2ZXJCZXR0ZXI=?=
Subject: If statements
Date: Fri, 3 Mar 2006 11:04:27 -0800
Lines: 4
Message-ID:
MIME-Version: 1.0
Content-Type: text/plain;
charset="Utf-8"
Content-Transfer-Encoding: 7bit
X-Newsreader: Microsoft CDO for Windows 2000
Content-Class: urn:content-classes:message
Importance: normal
Priority: normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.1830
Newsgroups: microsoft.public.excel.programming
Path: TK2MSFTNGXA03.phx.gbl
Xref: TK2MSFTNGXA03.phx.gbl microsoft.public.excel.programming:709087
NNTP-Posting-Host: TK2MSFTNGXA03.phx.gbl 10.40.2.250
X-Tomcat-NG: microsoft.public.excel.programming

Can I look for a text value in a sheet and copy it to another location.
For Example,

I looking for all the "Cat" and want to copy it to another locations


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
IF statements help Mandy J.S. Excel Worksheet Functions 1 February 2nd 09 05:09 PM
if statements Peter[_12_] New Users to Excel 4 January 24th 09 12:34 AM
IF Statements (Mutliple Statements) Deezel Excel Worksheet Functions 3 October 19th 06 06:13 AM
If statements Donna S Excel Discussion (Misc queries) 1 July 21st 06 06:21 PM
operator statements, shorting when reusing one of the statements? KR Excel Programming 1 August 4th 05 06:20 PM


All times are GMT +1. The time now is 03:30 AM.

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"