title: Excel: Get background color of cell using VBA
body: <p>I need to get RGB value of cell AU5 (which is filled with black color), but my function shows RGB value of G53. And I just don't know, how to pass the value of cell to function....</p>
  
  <p><a href="https://i.stack.imgur.com/hkHgq.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/hkHgq.jpg" alt="enter image description here"></a><a href="https://i.stack.imgur.com/PF2kQ.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/PF2kQ.jpg" alt="enter image description here"></a></p>
  
  <p>And here is a function in VBA:</p>
  
  <p><a href="https://i.stack.imgur.com/fBBvT.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/fBBvT.jpg" alt="enter image description here"></a></p>
  
  <p>Maybe anyone could help to fix it?</p>