Loading ...
Sorry, an error occurred while loading the content.

2220Re: [jslint] Re: ActiveXObject Assignment Generates 'Bad Assignment' Error

Expand Messages
  • Frederik Dohr
    May 18, 2011
    • 0 Attachment
      >> Problem at line 10 character 25: Bad assignment.
      >> xlSheet.Cells(1, 1) = 'Test';
      >
      > That line is not valid JavaScript. It is some weird Microsoft thing.
      > Isn't there a way to set your cell using the language correctly?

      I'm barely familiar with ActiveX, but perhaps something like this:

      var cell = xlSheet.Cells(1, 1);
      cell.value = 'Test';


      -- F.
    • Show all 4 messages in this topic