title: How do I set a text in clipboard using C# in order to past it into excel with different background/font color for each cell?
body: <p>I follow the below pattern and I can easily copy text into clipboard in order to past it later on into excel, but now I like to have different background/font color for each cell.</p>
  
  <p>When copying the data to clipboard, format it as Tab separated for columns, and Enter separated for rows. When pasting in Excel it will automatically put the values in rows and columns.</p>
  
  <p>example of my code :</p>
  
  <pre><code>string clipboardText = "cell11" + "\t" + "cell12" + "\r\n" + "cell21" + "\t" + "cell22";
  Clipboard.SetText(clipboardText);
  </code></pre>
  
  <p>any idea how to set a background/font color for each cell?</p>