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

Hey,

I'm looking to create a macro that compares one cell to a range of
cells in another work book. If the cell matches a cell in the range if
highlights the original cell. Is this possible and if so how.

Andrew
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Compare Macro

use countif in a conditional format formula. You will have to define the
range in another workbook using a defined name. The other workbook will
have to be opened. If that is not possible, then you will have to link to
that range in the other workbook and reproduce the values in the current
workbook.

--
Regards,
Tom Ogilvy


"Andrew T Smith" wrote in message
...
Hey,

I'm looking to create a macro that compares one cell to a range of
cells in another work book. If the cell matches a cell in the range if
highlights the original cell. Is this possible and if so how.

Andrew



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 21
Default Compare Macro

I'm sort of confused on this. I get where the conditional formating is
but i don't understand the countif thing. i almost need a 'is one of'
option. Help?

Andrew

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 21
Default Compare Macro

I got it now

Thanks


Tom Ogilvy wrote:
use countif in a conditional format formula. You will have to define

the
range in another workbook using a defined name. The other workbook

will
have to be opened. If that is not possible, then you will have to

link to
that range in the other workbook and reproduce the values in the

current
workbook.

--
Regards,
Tom Ogilvy


"Andrew T Smith" wrote in message
...
Hey,

I'm looking to create a macro that compares one cell to a range of
cells in another work book. If the cell matches a cell in the range

if
highlights the original cell. Is this possible and if so how.

Andrew


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
Macro about date compare mami Excel Discussion (Misc queries) 7 June 12th 08 04:07 PM
Compare two worksheets - macro help pm Excel Discussion (Misc queries) 2 February 2nd 08 07:10 AM
need help with compare macro pm Excel Discussion (Misc queries) 0 January 29th 08 04:22 PM
Sheet Compare Macro... Gordon[_2_] Excel Programming 1 November 13th 04 07:44 PM
compare books macro bill Excel Programming 0 August 11th 03 03:36 AM


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