theshooter
New Member
Hi folks, (apologies for the long post, but the 'stickies' say give as much detail as possible, so... I did...)
I am working on a firewall configuration form. In that form (Sheet1), the person will enter in 1 or more server names and an IP address for each server, one server and IP per row. In the same workbook, I have another worksheet (Sheet2 of same workbook) that contains all the servers and IPs of a specific set of servers for lookup purposes.
If a person types a server name or IP address that is on that special list, I would like a pop-up window/warning to appear advising the person that the server or IP they just entered is associated with a special project.
I am able to use conditional formatting, but several users are not paying attention to the highlighted cell(s) resulting in problems later on with firewall entries. So, need a more "in your face" way to tell people they need to do something, thus the need for a pop-up message.
I found one similar posting that sounds like it has similar type of output, but I could not replicate it and make it work for me. I get a runtime error, so I probably misread/misunderstood the instructions. **I am not a VBA guy...** -- yet. [looks like I better learn a little as this kind of work keeps coming my way.]
[http://chandoo.org/forums/topic/compare-2-sheets-in-workbook-and-display-in-pop-up-msg]
I am using Excel 2007.
Sample of form:
[pre]
[/pre]
NOTE: Sheet2 contains well over 200 entries.
Hopefully this contains the necessary info for the gurus/experts out there. I am fine with sticking VBA into my workbook, I just don't know it well enough to write it.
Thanks to all who've provided solutions and ideas. This site is pretty dang awesome!!
-- Jim
I am working on a firewall configuration form. In that form (Sheet1), the person will enter in 1 or more server names and an IP address for each server, one server and IP per row. In the same workbook, I have another worksheet (Sheet2 of same workbook) that contains all the servers and IPs of a specific set of servers for lookup purposes.
If a person types a server name or IP address that is on that special list, I would like a pop-up window/warning to appear advising the person that the server or IP they just entered is associated with a special project.
I am able to use conditional formatting, but several users are not paying attention to the highlighted cell(s) resulting in problems later on with firewall entries. So, need a more "in your face" way to tell people they need to do something, thus the need for a pop-up message.
I found one similar posting that sounds like it has similar type of output, but I could not replicate it and make it work for me. I get a runtime error, so I probably misread/misunderstood the instructions. **I am not a VBA guy...** -- yet. [looks like I better learn a little as this kind of work keeps coming my way.]
[http://chandoo.org/forums/topic/compare-2-sheets-in-workbook-and-display-in-pop-up-msg]
I am using Excel 2007.
Sample of form:
[pre]
Code:
SourceHost SourceIP
server1 10.3.214.7
server2 10.3.214.8
server3 10.3.214.9
server4 10.3.214.10
server5 10.3.214.11
server6 10.3.214.12
server7 10.3.214.13
server8 10.3.214.14
server9 10.3.214.15
server10 10.3.214.16
So, when they type in server1 (or an IP address) and press Enter, they should see a pop-up message/warning that says the entry they just made is associated with ProjectX. If the server name (or IP address) is not listed on Sheet2, do nothing.
On Sheet2, I have named ranges of:
servers
IPs
for the two columns that contain the two areas I want to lookup the information.
Sample of the Sheet2 data:
Project Name App HostName Location Status Env-OS IP Address
Project1 Application1 server1 Loc1 Production Win2003 165.253.171.100
Project1 Application2 server2 Loc1 Production Win2003 165.253.171.101
Project1 Application3 server3 Loc1 Production Sol-9 165.253.171.105
Project2 Application4 server4 Loc2 DR Win2008 165.253.171.13
NOTE: Sheet2 contains well over 200 entries.
Hopefully this contains the necessary info for the gurus/experts out there. I am fine with sticking VBA into my workbook, I just don't know it well enough to write it.
Thanks to all who've provided solutions and ideas. This site is pretty dang awesome!!
-- Jim