Question : Trying to optimize my VBA Code - help with syntax

Hi - I'm trying to use the same code but referencing different listview boxes.  I thought I could get away with:

IF A = "XXXX" then
   with lv1
else
   with lv2
end if

That didn't work...So I thought I would assign it box = "XXXX" then use box.columnheaders... and that didn't work.  

Is there a way I can accomplish this?

Thanks - Zack

Answer : Trying to optimize my VBA Code - help with syntax

Random Solutions  
 
programming4us programming4us