TourEiffel
TourEiffel

Reputation: 4434

Invalid use of property while delete cells

What am I doing wrong ?

MAJPRIXFORMAT.Cells(x, "C").Delete shift: xlToLeft

return me : "Invalid use of property" and highlight xlToLeft

MAJPRIXFORMAT is a var worksheet

This line should delete a cells and moove other cells to the left..

Upvotes: 0

Views: 20

Answers (1)

braX
braX

Reputation: 11755

You are missing the = sign:

MAJPRIXFORMAT.Cells(x, "C").Delete shift:=xlToLeft

Upvotes: 2

Related Questions