Question : Enter Formula in the next available cell

I need to place a formula in the next empty cell from left to right on row 20 in my worksheet.

What is the VBA code necessary to accomplish this?

Answer : Enter Formula in the next available cell

Use this code...

Saurabh..

1:
2:
lcol = Cells(20, "IV").End(xlToLeft).Column + 1
Cells(20, lcol).Formula = "=Your Formula"
Random Solutions  
 
programming4us programming4us