title: Apply Outisde Borders at selected cell
body: <p>I was wondering on how can I apply Outside borders (Range A1:M4) without placing in a code that has "worksheet" or "sheets" in it .
  For example</p>
  
  <pre><code>With Worksheets("Sheet1").Range("B8:I10").BorderAround 
  [INDENT].LineStyle = xlContinuous[/INDENT] 
  [INDENT].Weight = xlThick[/INDENT] 
  End With 
  </code></pre>
  
  <p>OR</p>
  
  <pre><code>With Sheet1.Range("B8:I10").Borders(xlEdgeLeft).LineStyle = xlContinuous 
  .Borders(xlEdgeRight).LineStyle = xlContinuous 
  .Borders(xlEdgeBottom).LineStyle = xlContinuous 
  .Borders(xlEdgeTop).LineStyle = xlContinuous 
  End With
  </code></pre>
  
  <p>This is because the Sheet has not been set yet (as of how my formatting for User interface will be) and I am using VBA module</p>