I have a workbook with some hidden columns. I have a button which is linked to a macro. The macro selects a range of cells on those hidden columns and copies to the clipboard.
When I paste from the clipboard into a text editor, whitespace characters of some sort are pasted, but I am not seeing any values. Also, I am copying quite a few rows and whatever the whitespace info is, it is not enough to account for all the rows either.
I read one question which has a comment noting that hidden cells are copied to the clipboard - and when pasted into another Excel workbook, they are pasted - but remain hidden.
However my issue is that I need to paste them into a text editor.
If I unhide the columns and then click the button to run the macro, then the cell values are pasted correctly into the text editor.
Current macro code:
Sub Copy_code()
'
' Copy_code Macro
'
'
Range("G12:G1040").Select
Selection.Copy
Range("f9:h9").Select
End Sub