Note that there are some explanatory texts on larger screens.

plurals
  1. POHow to determine if a worksheet Cell is Visible/Displayed in VBA?
    primarykey
    data
    text
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. COJust Curious... What if say Cell A4 is hidden and you can see up till say rows 41. Would you consider cell A4 visible or hidden? Also What would you say for cells which are partially visible?
      singulars
    2. CO@SiddharthRout - I would consider cell A4 as being visible. Some background on what I'm trying to accomplish, I need to find the LEFT and TOP of a particular cell. So I need to iterate through the cells to it's left and through the cells above it. I need to check if those cells are visible, and if they are, I need to sum their width (or height). The problem that I'm running into right now, is that some of the cells are frozen, and do not show up as part of the visible range. I'm not sure how to deal with that. Any help or suggestions?
      singulars
    3. CO@SiddharthRout - I figured out how to check if the cell is "frozen" or not, by using the following code: `Function CellIsInFrozenRange(cell As Range)` `Dim inRow As Boolean` `Dim inColumn As Boolean` `If (ActiveWindow.SplitRow > 0) Then` `inRow = Not Intersect(cell, Range(Cells(1, 1),` `Cells(ActiveWindow.SplitRow, 1).End(xlEnd))) Is Nothing` `End If` `If (ActiveWindow.SplitColumn > 0) Then` `inColumn = Not Intersect(cell, Range(Cells(1, 1), Cells(1, ActiveWindow.SplitColumn).End(xlDown))) Is Nothing` `End If` `CellIsInFrozenRange = (inRow Or inColumn)` `End Function`
      singulars
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload