title: Powershell: save bold text into variable
body: <p>I'd like to ask you for a help how to save bold text into variable from Excel via Powershell. I'm not a full time developer, just trying to make my life easier with Powershell :)</p>
  <p>This is what I have (it's not a lot unfortunately):</p>
  <pre><code># Open file test.xlsx
  $excel = Open-ExcelPackage -Path './test.xlsx'
  
  # Copy content of the worsksheet 'Sheet1'
  $worksheet = $excel.Workbook.Worksheets['Sheet1']
  
  # Copy specific cell value to the variable    
  $String = $worksheet.Value
  $StringBold = 
  
  # Close Excel file
  Close-ExcelPackage -ExcelPackage $Excel
  </code></pre>
  <p>I'm able to save content of the file test.xlsx into <code>&amp;worksheet</code> variable. In some cell might be the string 'How are you today <strong>Marek</strong>?' So the next step should be to save only word <strong>Marek</strong> into the variable <code>$StringBold</code></p>
  <p>Thanks a lot for any advice.</p>