Thema Datum  Von Nutzer Rating
Antwort
Rot VBA Formula returns #Name error, but simply refreshing solves error?
17.05.2016 22:19:03 Torben
NotSolved
20.05.2016 09:44:05 Gast70159
NotSolved

Ansicht des Beitrags:
Von:
Torben
Datum:
17.05.2016 22:19:03
Views:
1056
Rating: Antwort:
  Ja
Thema:
VBA Formula returns #Name error, but simply refreshing solves error?
Hello VBA forum, I'm working right now on a VBA project. Inside of a VBA sub I write the following code/formula into a cell: "=IF(ODER(ISNA(E" & number_of_rows & "),F" & number_of_rows & "="""",G9=""""),""Please, enter part number/rental duration/tax rate"",I" & number_of_rows & "*(1+G9))" number_of_row is here a number. When I run the code, the related cell has the code inside but is not able to return the right value. Instead it returns the error "#NAME?". But the Formula seems to be right and when you click in the cell and simply hit enter to try to runt he code again the code works and the right number is returned. Is there any way how I can have that "refreshing" also inside of the macro? I would like to spare this additional step for the user. I'm looking forward to any hints... thanks Torben

Ihre Antwort
  • Bitte beschreiben Sie Ihr Problem möglichst ausführlich. (Wichtige Info z.B.: Office Version, Betriebssystem, Wo genau kommen Sie nicht weiter)
  • Bitte helfen Sie ebenfalls wenn Ihnen geholfen werden konnte und markieren Sie Ihre Anfrage als erledigt (Klick auf Häckchen)
  • Bei Crossposting, entsprechende Links auf andere Forenbeiträge beifügen / nachtragen
  • Codeschnipsel am besten über den Code-Button im Text-Editor einfügen
  • Die Angabe der Emailadresse ist freiwillig und wird nur verwendet, um Sie bei Antworten auf Ihren Beitrag zu benachrichtigen
Thema: Name: Email:

 
 

  • Bitte beschreiben Sie Ihr Problem möglichst ausführlich. (Wichtige Info z.B.: Office Version, Betriebssystem, Wo genau kommen Sie nicht weiter)
  • Bitte helfen Sie ebenfalls wenn Ihnen geholfen werden konnte und markieren Sie Ihre Anfrage als erledigt (Klick auf Häckchen)
  • Bei Crossposting, entsprechende Links auf andere Forenbeiträge beifügen / nachtragen
  • Codeschnipsel am besten über den Code-Button im Text-Editor einfügen
  • Die Angabe der Emailadresse ist freiwillig und wird nur verwendet, um Sie bei Antworten auf Ihren Beitrag zu benachrichtigen

Thema Datum  Von Nutzer Rating
Antwort
Rot VBA Formula returns #Name error, but simply refreshing solves error?
17.05.2016 22:19:03 Torben
NotSolved
20.05.2016 09:44:05 Gast70159
NotSolved