We help IT Professionals succeed at work.
Get Started

Aggregate several small Actions (Searching, Summing etc.)  into a VBA Code

Last Modified: 2016-04-18
Dear Experts:

I wonder whether some expert could help me write this VBA code.

If F8 of the 'TecData' worksheet of the currently open workbook = "" Then exit sub

If F8 of the 'TecData' worksheet <> "", Then  grab the contents of F29 of the'TechData' worksheet and search that cell contents in Row 5 of the Worksheet 'Workshop'.

If that Search Term is not found in Row 5 of the worksheet 'Workshop', a MsgBox 'Date not found' is to pop up and the macro is to exit

If the Search Term is found in Row 5 of the worksheet 'Workshop', select that cell and perform the following intersection action …
=OFFSET($A$1,ROW(A24)-1,COLUMN('Cell Reference of the previously Selected Cell')-1)

The cell of that intersection action is to be selected (Lets call this cell 'Intersection Cell')

Grab the cell contents of F8 of the 'TecData' worksheet and add (summing up)  that figure to the cell contents of  the Intersection Cell (Worksheet 'Workshop')

Help is much appreciated. Thank you very much in advance.

Regards, Andreas
Watch Question
Top Expert 2016
This problem has been solved!
Unlock 1 Answer and 8 Comments.
See Answer
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE