Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 93
Default read hidden cells; vba

I loop thru a range of cells on a sheet and generate a checksum.
Hidden cells are apparently not read. Is there an “omnipotent”
setting I can make to just make reads work, or do I have to test the
value of hidden, turn it off, read it, and return it to hidden?

Thank you.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,441
Default read hidden cells; vba

Cate,

Post your code - hiding cells affects some functions and not others.

HTH,
Bernie
MS Excel MVP


"cate" wrote in message
...
I loop thru a range of cells on a sheet and generate a checksum.
Hidden cells are apparently not read. Is there an “omnipotent”
setting I can make to just make reads work, or do I have to test the
value of hidden, turn it off, read it, and return it to hidden?

Thank you.


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 93
Default read hidden cells; vba

On Nov 20, 9:55*am, "Bernie Deitrick" <deitbe @ consumer dot org
wrote:
Cate,

Post your code - hiding cells affects some functions and not others.


Set mySheet = Application.ThisWorkbook.Worksheets("CoolantGroup" )
Set rgHome = mySheet.Cells(1, 1)

colEnd = INITIAL_SUBMISSION_COLS
rowEnd = INITIAL_SUBMISSION_ROWS
barrel = 1#
For colIndex = 1 To colEnd Step 1
For rowIndex = 1 To rowEnd Step 1
cellText = rgHome.offset(rowIndex, colIndex).Text
checksum = ha****(cellText, checksum)
Next ' row
Next ' col
  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,441
Default read hidden cells; vba

Cate,

How are you "hiding" the cells? Nothing in your code is apparently wrong - unless you are applying
a custom format of ;;; to hide the cell.

But I would change

cellText = rgHome.offset(rowIndex, colIndex).Text

to

cellText = Format(rgHome.offset(rowIndex, colIndex).Value,"some appropriate format string")

which should remove any formatting considerations.

Also, you should note that your code is looping through cells starting at B2, not A1, which may or
may not matter.

HTH,
Bernie
MS Excel MVP


"cate" wrote in message
...
On Nov 20, 9:55 am, "Bernie Deitrick" <deitbe @ consumer dot org
wrote:
Cate,

Post your code - hiding cells affects some functions and not others.


Set mySheet = Application.ThisWorkbook.Worksheets("CoolantGroup" )
Set rgHome = mySheet.Cells(1, 1)

colEnd = INITIAL_SUBMISSION_COLS
rowEnd = INITIAL_SUBMISSION_ROWS
barrel = 1#
For colIndex = 1 To colEnd Step 1
For rowIndex = 1 To rowEnd Step 1
cellText = rgHome.offset(rowIndex, colIndex).Text
checksum = ha****(cellText, checksum)
Next ' row
Next ' col


  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 93
Default read hidden cells; vba


Also, you should note that your code is looping through cells starting at B2, not A1, which may or
may not matter.

HTH,
Bernie
MS Excel MVP


DOH!


And yes, there are cells that are purposely hidden on the protected
sheet.


I assume the format construct will allow me to read these 'hidden'
cells, or am I out of luck?

Thanks yet again.


  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,441
Default read hidden cells; vba

cate,

I'm still not sure why you are not able to read those cells - what is their formatting? How are they
hidden? And yes, you can always read the Value of a cell - no matter what.

HTH,
Bernie
MS Excel MVP


"cate" wrote in message
...

Also, you should note that your code is looping through cells starting at B2, not A1, which may
or
may not matter.

HTH,
Bernie
MS Excel MVP


DOH!


And yes, there are cells that are purposely hidden on the protected
sheet.


I assume the format construct will allow me to read these 'hidden'
cells, or am I out of luck?

Thanks yet again.



  #7   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 54
Default read hidden cells; vba

Beware of the differences between cells hidden thru filtering or hidden using
the Hide option. With the latter they are available to manipulate in
interactive mode. And guess what, in macro mode you can also manipulate cells
hidden thru filtering - NOT THE WAY TO GO!

--
Ken
"Using Dbase dialects since 82"
"Started with Visicalc in the same year"


"Bernie Deitrick" wrote:

cate,

I'm still not sure why you are not able to read those cells - what is their formatting? How are they
hidden? And yes, you can always read the Value of a cell - no matter what.

HTH,
Bernie
MS Excel MVP


"cate" wrote in message
...

Also, you should note that your code is looping through cells starting at B2, not A1, which may
or
may not matter.

HTH,
Bernie
MS Excel MVP


DOH!


And yes, there are cells that are purposely hidden on the protected
sheet.


I assume the format construct will allow me to read these 'hidden'
cells, or am I out of luck?

Thanks yet again.



.

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
enable re-code to re-read on re-hidden columns, if can be possible driller Excel Discussion (Misc queries) 6 October 11th 09 12:52 PM
read from hidden sheet greg Excel Programming 1 May 6th 09 09:56 PM
Read only access for hidden sheet Kashyap Excel Programming 2 April 13th 09 07:33 PM
drag data vertically over hidden cells.. ignore hidden cells Derwood Excel Discussion (Misc queries) 1 March 6th 08 10:59 PM
How do I paste hidden cells and keep them hidden? steven345 Excel Discussion (Misc queries) 0 January 30th 06 05:50 PM


All times are GMT +1. The time now is 10:13 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"