VBA Excel - Cells(row,col).value question

Both of the following statements are working.  Is the ".value" optional ?

Cells(RowCount, 7) = CommissionAmt

Cells(RowCount, 7).value = CommissionAmt
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

I believe so. I've used also both solutions and both work well. I'm not sure what is the difference, if there is...
Saqib Husain, SyedEngineerCommented:
Frequently both work OK but there may be instances where it would not work and would become a nightmare to debug it. So it is safest to always use it.
It's the default method, therefore can be omitted. But generally, it's wise to write it, 'cause of the code appearance and orientation
I have not seen any official documentation on whether it's a default method but I'd keep it in for several reasons:
- All the documentation shows that it's proper form to include it.
- Perhaps sometime in the future, they'll be changes to VBA which might throw a monkey wrench into your code that DOES NOT include the "dot value" clause.
- Think about the future programmers who will be maintaining your code once you move in.  KEEP IT IN!

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Excel

From novice to tech pro — start learning today.