Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi
Could someone help me simplify the below code. Basically the module is used to import some data and format it ready for output. I have the below checks to do before any calculations will run, I am adding more reconciliations to this list so would like to keep it as simple and as short as possible. Could I use a select case statement for this? If Worksheets("ZPOHeader").Range("A1").Value < "" Then Call ZPOHeader Else MsgBox ("Import the ZPOHeader report and then rerun procedure") End End If If Worksheets("ZPOHeader").Range("A1").Value < "" Then Call ZPODetails Else MsgBox ("Import the ZPODetails report and then rerun procedure") End End If If Worksheets("ABC_Month").Range("A1").Value = "" Then MsgBox ("Import the ABC_Month report and then rerun procedure") End End If If Worksheets("ABC_Accum").Range("A1").Value = "" Then MsgBox ("Import the ABC_Accum report and then rerun procedure") End End If |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Can I simplify a VB code?????? | Excel Discussion (Misc queries) | |||
Simplify code | Excel Worksheet Functions | |||
Case without Select Case error problem | Excel Discussion (Misc queries) | |||
Need to simplify code | Excel Discussion (Misc queries) | |||
Help to simplify code. | Excel Programming |