Computer Science, asked by reenalohiyaraj, 6 months ago

What is the use of Dim statement? Explain with example.

Answers

Answered by Anonymous
2

Answer:

The Dim keyword is short for Dimension. It is used to declare variables in VBA. Declare means we are telling VBA about a variable we will use later. There are four types of Dim statements. They are all pretty similar in terms of syntax.

Explanation:

Dim [ WithEvents ] varname [ ( [ subscripts ] ) ] [ As [ New ] type ] [ , [ WithEvents ] varname [ ( [ subscripts ] ) ] [ As [ New ] type ]] . . .

Similar questions