elwayisgod
asked on
VBA - Excel 2007 - Validate Columns
OK. On the attached file on the 'BID_TEMPLATE' tab I need some validation done before users click the 'Copy Rows to Retrieval Tab' button.
If you want these as two questions and 500pts ea, no problems.
EE-Template-NewV26-Stripped-Work.xlsm
1.
On the 'Copy Rows to Retrieval' button, I need it modified to only copy over the rows that actually exist between rows 15 and 3014. So if rows 15 to 18 exist then only those rows copy over and the Unique ID only goes from 1 to 4 and the Zip Code stops too. So all rows 19 and below are empty. Not sure if can handle it if rows 15 to 18 have data and then row 22 does too, skipping 19 to 21. I guess if possible bring row 22 over too so the unique id's would be 1 to 4 and 8.2.
On the 'Bid Template' tab before the users click the Copy button I need some type of validation that whatever they put in the cells for each column that are to be copied actually have valid data in them. So each value in the columns are compared to the list of valid choices that are located on the 'Outline' tab. So if any cell has a value in it that is NOT in the list it will not allow them to copy and will give them a error letting them know which value in on the 'BID_Template' is invalid. If a invalid member is copied over and they try and retrieve via Essbase is hoses up the retrieval tab big time. So need some type of validation here first. Now not sure it's just added to the Copy button before it gets to the Copy part or if it's better to have a separate 'Validate' button..... Either way is fine.If you want these as two questions and 500pts ea, no problems.
EE-Template-NewV26-Stripped-Work.xlsm
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Exactly what was needed. Thanks. I'm almost there. Few more tweeks and I'm done, hopefully. Users keep throwing me monkey wrench.
Thanks - PS line 62 needs to address column BB not Z.
Cheers,
Dave
Cheers,
Dave
ASKER
So:
wksRetrieval.Range(wksRetr ieval.Rang e("BB15"), wksRetrieval.Range("BB" & lastRow)).ClearContents
wksRetrieval.Range(wksRetr
Yep
ASKER
OK. Any chance you can take a look at my last question. Need all my 'Moves' to overwrite if that Unique ID row exists in destination. Allows users to change their pulls but keep same Unique ID.
ASKER