Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Using the Find function with the What referencing a Range/Cell Value

Below is part of the Macro.

Columns("B:B").Select
Selection.Find("01/20/04", _
After:=ActiveCell, _
LookIn:=xlValues, _
LookAt:=xlPart, _
SearchOrder:=xlByRows, _
SearchDirection:=xlNext, _
MatchCase:=False).Activate
ActiveCell.Select
ActiveCell.Offset(0, 3).Activate

The macro works but in the portion

Selection.Find("01/20/04"

I would like to have the "01/20/04" (date) reference a value from
cell in my spreadsheet (also a date)

--
Message posted from http://www.ExcelForum.com

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7,247
Default Using the Find function with the What referencing a Range/Cell Value

Try something like

Selection.Find Range("A1").Text, ....


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com


"PFederinko " wrote
in message ...
Below is part of the Macro.

Columns("B:B").Select
Selection.Find("01/20/04", _
After:=ActiveCell, _
LookIn:=xlValues, _
LookAt:=xlPart, _
SearchOrder:=xlByRows, _
SearchDirection:=xlNext, _
MatchCase:=False).Activate
ActiveCell.Select
ActiveCell.Offset(0, 3).Activate

The macro works but in the portion

Selection.Find("01/20/04"

I would like to have the "01/20/04" (date) reference a value

from a
cell in my spreadsheet (also a date).


---
Message posted from http://www.ExcelForum.com/



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
referencing a range in Sumproduct function caroline Excel Worksheet Functions 6 September 7th 09 04:42 PM
excel, what if function referencing another cell MARY Excel Worksheet Functions 3 June 13th 08 03:31 PM
Referencing a named range based upon Range name entry in cell Barb Reinhardt Excel Worksheet Functions 14 June 20th 07 07:19 PM
Referencing Row Range in another cell DJS Excel Discussion (Misc queries) 4 January 4th 07 01:12 AM
Referencing a range of columns and rows with the IF function Cliff Excel Worksheet Functions 7 April 2nd 06 01:07 AM


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