Advertisement

03.07.2008 at 04:17AM PST, ID: 23222631
[x]
Attachment Details

read cell under specific criteria

Asked by touyets in VB Script, VB Database Programming, Microsoft Excel Spreadsheet Software

Tags: VBA, Excel, Excel VBA

Hi all,

I am under Excel 2003 (VBA of course).
I have a form with 7 labels named: Label7 to Label13.
I have a database with more than 7 rows in (2 cloumns).

What i'd like to do is for my file to automatically find (on the form's upload) when a row has the value "Not Done" in column B and put the value from the cell next to it (column A on the same row) into label7 and then continue and find the next row with value "Not Done" in column B and this time put the value from cell A into Label8.

i'd like it to continue until he completes the 7 Labels or until he can't find anymore rows with the value "Not Done" in column B and then make the remaining labels not visible (using for example label13.visible = False) (if 4 rows with value "Not Done" are found then it should hide the last 3 labels.

Is this possible?

regards,

SimonStart Free Trial
 
Loading Advertisement...
 
[+][-]03.07.2008 at 04:43AM PST, ID: 21069405

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: VB Script, VB Database Programming, Microsoft Excel Spreadsheet Software
Tags: VBA, Excel, Excel VBA
Sign Up Now!
Solution Provided By: jell
Participating Experts: 1
Solution Grade: A
 
 
[+][-]03.07.2008 at 04:57AM PST, ID: 21069484

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628