LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4
Default Automate the Find function in Excel

Hi, I cannot find a way to do this:

I have a cell (Y8) with content. In this case the content is a
variable...the value can change. I want to create a maco to search/find the
next occurrence of the contents of Y8 on the same workseet only. I created
the macro below where I copied the content of Y8 using the find function
(Edit--Find), but the macro does not work as I imagined. The copied data
remains static. It does not change from the orginal content of Y8...in this
case "04/19/08". I would greatly appreciate help in finding a way to perform
this task. Here's the macro I created:

Sub go_to_date()
'
' go_to_date Macro
' Macro recorded 4/18/2008 by espencer
'

'
Range("Y8").Select
Application.CutCopyMode = False
Selection.Copy
Cells.Find(What:="04/19/08", After:=ActiveCell, LookIn:=xlValues, LookAt _
:=xlPart, SearchOrder:=xlByRows, SearchDirection:=xlNext,
MatchCase:= _
False, SearchFormat:=False).Activate
End Sub
 
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
find function in EXCEL [email protected] Setting up and Configuration of Excel 1 February 19th 08 03:21 PM
find function in EXCEL [email protected] Excel Discussion (Misc queries) 1 February 19th 08 03:21 PM
Hide / UnHide - is there a Function to automate this ? Andrew Duncan Excel Worksheet Functions 8 July 5th 07 05:58 AM
how do i automate an index function with a data table Gracie_J Excel Worksheet Functions 0 October 8th 06 11:32 PM
Need help find automate way to cross reference two GAINT excel databases!! bxc2739 Excel Worksheet Functions 1 April 21st 06 04:59 PM


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