tonywatsonhelp
Well-known Member
- Joined
- Feb 24, 2014
- Messages
- 3,139
- Office Version
-
- 365
- 2019
- 2016
- Platform
-
- Windows
Hi Everyone,
I'd like a macro to run a check and bring up a warning if the data in any of the cell in Range H11:H223 appears in the text of the cell befor it in Range F11:F223 but only the cell on the same row for each word
Ok so I have a document sheet called "Report Data"
Column F is called "Details" and Column H is Called "Department" (there is a lot more to this document but basically that all the data needed to do what I want)
So Column H has private Information in it that must not appear on so reports we send, the problem is sometime the data in Column H is being refered to it column F
So For example:
H might say "Mr Randhall",
now in F is a description that should not include that word, however sometime it does, so it might read
" I spoke to Mr Randhall and we are meeting next Tuesday"
it should read
" I spoke to Client and we are meeting next Tuesday"
so what I need is a macro to check if the private data in each row of H is not in the public comments in F
I realise there are lots of complication to this but I just want it simply to check the word and see if it a match to any of the words in the sentence.
if it does A message box should pop up say "Private Data in Details, please remove"
any ideas how I can do this???
tony
I'd like a macro to run a check and bring up a warning if the data in any of the cell in Range H11:H223 appears in the text of the cell befor it in Range F11:F223 but only the cell on the same row for each word
Ok so I have a document sheet called "Report Data"
Column F is called "Details" and Column H is Called "Department" (there is a lot more to this document but basically that all the data needed to do what I want)
So Column H has private Information in it that must not appear on so reports we send, the problem is sometime the data in Column H is being refered to it column F
So For example:
H might say "Mr Randhall",
now in F is a description that should not include that word, however sometime it does, so it might read
" I spoke to Mr Randhall and we are meeting next Tuesday"
it should read
" I spoke to Client and we are meeting next Tuesday"
so what I need is a macro to check if the private data in each row of H is not in the public comments in F
I realise there are lots of complication to this but I just want it simply to check the word and see if it a match to any of the words in the sentence.
if it does A message box should pop up say "Private Data in Details, please remove"
any ideas how I can do this???
tony