VBA script

jharih1

New Member
Joined
Dec 5, 2017
Messages
14
We have an issue where end users have to update a spreadsheet with data, which then feeds another application. However, because end users are not following the format, or entering bogus numbers in a field, our data gets corrupted on the end. I would like to create a VB script that checks whether a particular number listed is valid. The validity is a lookup function to available numbers that are housed in a Access Database table. If its not valid, I want to have a message pop up, or notification to the person entering the data that their number listed is not valid.

I am not a coder, but I know only VB script can do what I am asking it to. I also cannot house the data from the database table within excel because there are too many records.

Thanks in advance!
 

Excel Facts

Copy a format multiple times
Select a formatted range. Double-click the Format Painter (left side of Home tab). You can paste formatting multiple times. Esc to stop
Welcome to the forum!

There should be several examples using ADO. Other methods might be a QueryTable.
 
Upvote 0
Thank you! I tried searching but I couldn't find any helpful examples. Perhaps this is due to my ignorance on scripting too.
 
Upvote 0

Forum statistics

Threads
1,223,904
Messages
6,175,295
Members
452,632
Latest member
jladair

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top