Error 1004: 'Unable to get the Atan2 property of the WorksheetFunction class'

  • Thread starter Thomas Lindberg
  • Start date
T

Thomas Lindberg

The Subject says it.

Help points to Tools-Macro-Security: it _IS_ set to 'Trust access to VB
project'
Err-ing codline:

Var3 = Application.WorksheetFunction.Atan2(Var2, Var1)

The code line is completed (an capitalized) by Exels VBA

What the he .. is wrong?

The code has worked in another setup!

Help appreciated!

TIA

Thomas
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top