title: VBA Create table: Syntax error with table header table
body: <p>I have a code that creates a table that works just fine, but I realized that I forgot to acknowledge that my range already has table headers. When I change the code by adding <code>xlYes</code> then I get an &quot;expected: named parameter&quot; error.</p>
  <p>This code works in the macro
  <code>RD.ListObjects.Add(SourceType:=xlSrcRange, Source:=tbl).Name = &quot;Bucket_Info&quot;</code></p>
  <p>This code does not work
  <code>RD.ListObjects.Add(SourceType:=xlSrcRange, Source:=tbl, , xlYes).Name = &quot;Bucket_Info&quot;</code></p>
  <p>where is the error?</p>