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

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

Expand Messages
  • jamrsim@yahoo.com
    Thanks Douglas and Frederik. Combine the two responses and I have my answer. Thanks, worked like a charm. Appreciate the help!
    Message 1 of 4 , May 18, 2011
    • 0 Attachment
      Thanks Douglas and Frederik.

      Combine the two responses and I have my answer. Thanks, worked like a charm. Appreciate the help!

      --- In jslint_com@yahoogroups.com, Frederik Dohr <fdg001@...> wrote:
      >
      > >> 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.
      >
    Your message has been successfully submitted and would be delivered to recipients shortly.