Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 557
Default Match Value and Show MsgBox

Hi all, I have two Workbooks in folder "C:\Documents". One is call
"Source.xlsm" and the other call "Data.xlsm". In Workbooks
("Source.xlsm").Sheets("Sheet1").Column("C").Range ("C2:C10") I have
formula "=A2&B2" down to "=A10&B10". And in Workbooks
("Data.xlsm").Sheets("Sheet1").Column("B").Range(" B2:B100") i have
data. I want macro in Workbooks("Source.xlsm") in Worksheet Module
which should work in Range("A2:B10"). I want that when Value in
cells A2 & B2 < "" then Macro should match cell C2 value in Workbooks
("Data.xlsm").Sheets("Sheet1").Column("B").Range(" B2:B100") and if
value match then do nothing but if value don't match then show MsgBox
with message "Value not Matched". Macro should do this when ever i
put value in cells of Range("A2:B10") as i mentioned above. Please can
any friend can help
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9,101
Default Match Value and Show MsgBox

I don't think you want to keep on opening and closing workbkooks. I think
you want to add a thrid column in workbook "Source.xlsm" add links to
workbook "Data.xlsm" data. then simply add a formula in the Source workbook
to perform your checks. Possibly conditional formating statements.

If you want a macro then menually run the macro to perform the checks. You
can have the macro highlight the cells that arre diffferent and even add the
diffferrentt value into a column in the source workbook.

"K" wrote:

Hi all, I have two Workbooks in folder "C:\Documents". One is call
"Source.xlsm" and the other call "Data.xlsm". In Workbooks
("Source.xlsm").Sheets("Sheet1").Column("C").Range ("C2:C10") I have
formula "=A2&B2" down to "=A10&B10". And in Workbooks
("Data.xlsm").Sheets("Sheet1").Column("B").Range(" B2:B100") i have
data. I want macro in Workbooks("Source.xlsm") in Worksheet Module
which should work in Range("A2:B10"). I want that when Value in
cells A2 & B2 < "" then Macro should match cell C2 value in Workbooks
("Data.xlsm").Sheets("Sheet1").Column("B").Range(" B2:B100") and if
value match then do nothing but if value don't match then show MsgBox
with message "Value not Matched". Macro should do this when ever i
put value in cells of Range("A2:B10") as i mentioned above. Please can
any friend can help

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
Show a message but not in MsgBox RobN[_2_] Excel Discussion (Misc queries) 2 May 30th 08 11:58 PM
How MsgBox can show address? Milind Excel Programming 1 September 30th 05 01:58 AM
MsgBox - Don't Show Again exceller Excel Programming 4 August 19th 04 11:23 PM
Dont show msgbox again Todd Huttenstine Excel Programming 4 April 30th 04 09:51 PM
Show msgbox only when.... Tod Excel Programming 3 July 29th 03 06:21 PM


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