need to skip lines 11-30 from Template in VBA Macro

Hi,

I have sheet with Data is used to replace in the SQL queries (SQL Template).
SQL is sheet used to generate SQL queries by Data and SQL Template sheets.

If column A value is have empty, lines 11-30 present in the SQL Template should not be executed . i.e Batch job _start, Batch_success and Batch_fail

As of now , these are executed with _Start,_Success,_Fail

Please find the attached sheet and kindly help me

Regards,
Suneetha

AttachmentSize
Copy of Notification_Config_Script_Generator_Batch_Event_all_bck (1) (1).xls78 KB