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

I'd like to use an "IF" statement for a macro, but I dont' know how to
describe the condition to VBA. Basically, the condition is whether or not two
cells have the same value in column K. Thanks

comparini3000
  #2   Report Post  
Posted to microsoft.public.excel.programming
Ken Ken is offline
external usenet poster
 
Posts: 590
Default Detecting Double Entries

Assuming rows 1 and 2
If Cells(1, 11).Value = Cells(2, 11).Value then

or

If Range("K1").Value = Range("K2").Value then

You don't really have to use the .Value part

"comparini3000" wrote:

I'd like to use an "IF" statement for a macro, but I dont' know how to
describe the condition to VBA. Basically, the condition is whether or not two
cells have the same value in column K. Thanks

comparini3000

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
Double Entries in Excel S1L1Y1 Excel Discussion (Misc queries) 3 May 6th 09 08:47 PM
Double Entries in Excel S1L1Y1 Excel Discussion (Misc queries) 2 May 6th 09 08:34 PM
Double Entries in Excel Harlan Grove[_2_] Excel Discussion (Misc queries) 1 May 6th 09 06:35 PM
vlookup double entries... help!!! xair Excel Discussion (Misc queries) 5 June 28th 08 01:10 AM
Checking for double entries The Fool on the Hill Excel Discussion (Misc queries) 6 November 16th 06 12:07 PM


All times are GMT +1. The time now is 06:51 PM.

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"