Hi All!
I'd like to copy a value into a filtered range and include the hidden cells. When pasting a series of cells, this is the default, usually undesired, behavior, i.e., your values disappear into a filter sinkhole.
But, when the value originates from a single cell, is a <Ctrl><Enter>, or even a drag of the pull handle, hidden cells are ignored. Picture a filtered table, where we want to enter FALSE into all the visible cells and everything in between (i.e., hidden). Is there any easy way to achieve this without having to clear the filters?
As a last resort, this can be solved by looping through the range, like below. Is there a native way to accomplish this?
Thank you,
UniMord
	
	
	
		
				
			I'd like to copy a value into a filtered range and include the hidden cells. When pasting a series of cells, this is the default, usually undesired, behavior, i.e., your values disappear into a filter sinkhole.
But, when the value originates from a single cell, is a <Ctrl><Enter>, or even a drag of the pull handle, hidden cells are ignored. Picture a filtered table, where we want to enter FALSE into all the visible cells and everything in between (i.e., hidden). Is there any easy way to achieve this without having to clear the filters?
As a last resort, this can be solved by looping through the range, like below. Is there a native way to accomplish this?
Thank you,
UniMord
		Code:
	
	Sub PasteIncludingHidden()
  On Error GoTo Finish 'If clipboard is empty.
  Dim cel As Range
  Dim DataObj As New MSForms.DataObject: DataObj.GetFromClipboard
  Dim paste$: paste = DataObj.GetText: paste = Left(paste, Len(paste) - 2)
  Application.ScreenUpdating = False
  For Each cel In Selection
  cel = paste
  Next cel
Finish:
  Application.ScreenUpdating = True
End Sub 
	 
 
		 
 
		