Skip to main content
Post Closed as "Duplicate" by GSerg vba
deleted 16 characters in body
Source Link
ZygD
  • 24.8k
  • 41
  • 106
  • 144

Hopefully an easy question, but I'd quite like a technical answer to this!

What's the difference between:

i = 4 

and

setSet i = 4 

in VBA? I know that the latter will throw an error, but I don't fully understand why.

Many thanks!

Hopefully an easy question, but I'd quite like a technical answer to this!

What's the difference between:

i = 4 

and

set i = 4 

in VBA? I know that the latter will throw an error, but I don't fully understand why.

Many thanks!

Hopefully an easy question, but I'd quite like a technical answer to this!

What's the difference between:

i = 4 

and

Set i = 4 

in VBA? I know that the latter will throw an error, but I don't fully understand why.

edited tags
Link
Mark Hurd
  • 11k
  • 10
  • 74
  • 106
Source Link
Jon Artus
  • 6.4k
  • 11
  • 44
  • 41

What does the keyword Set actually do in VBA?

Hopefully an easy question, but I'd quite like a technical answer to this!

What's the difference between:

i = 4 

and

set i = 4 

in VBA? I know that the latter will throw an error, but I don't fully understand why.

Many thanks!