Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4
Default using a toggle button to show or hide information in several cells

I have a sheet that contains confidential information and only want it
visible when I need it. I can insert all the different buttons and boxes but
can not seem to get them to do this.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,722
Default using a toggle button to show or hide information in several cells

If the information is a whole row/column, you could record of macro of you
hiding the rows, and unhiding the rows (seperate recordings, of course)

Then just assign the macros to two buttons

--
Best Regards,

Luke M


"hanson" wrote:

I have a sheet that contains confidential information and only want it
visible when I need it. I can insert all the different buttons and boxes but
can not seem to get them to do this.

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 22,906
Default using a toggle button to show or hide information in several cells

Luke

Why not just one button to toggle hide or not hide?

Sub togglerows()
Dim rng As Range
Dim Cell As Range
Set rng = ActiveSheet.Range("A10:A14")
rng.EntireRow.Hidden = Not rng.EntireRow.Hidden
End Sub


Gord Dibben MS Excel MVP


On Fri, 7 Dec 2007 11:25:04 -0800, Luke M
wrote:

If the information is a whole row/column, you could record of macro of you
hiding the rows, and unhiding the rows (seperate recordings, of course)

Then just assign the macros to two buttons


  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 22,906
Default using a toggle button to show or hide information in several cells

You cannot hide individual cells.

Rows or columns, yes.

You can use Custom Views to set up differing views or use the ToggleRows code I
posted in my other posting in this thread.

As far as hiding "confidential" information, my rule is "if you don't want them
to see it, don't include it in the workbook".

Excel security is just weak enough that anyone with acess to the 'net and
password crackers can uncover your data.


Gord Dibben MS Excel MVP

On Fri, 7 Dec 2007 11:09:01 -0800, hanson
wrote:

I have a sheet that contains confidential information and only want it
visible when I need it. I can insert all the different buttons and boxes but
can not seem to get them to do this.


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
hide or show a series with a button Craig Charts and Charting in Excel 1 December 6th 07 04:36 AM
SUBTOTAL'S SHOW AND HIDE DETAILS BUTTON MISSING Seebu Excel Discussion (Misc queries) 4 October 29th 07 02:27 PM
macro to hide then show cells [email protected] Excel Discussion (Misc queries) 2 January 26th 07 05:07 PM
Want to show/hide cells depending on other cells results Marco Excel Discussion (Misc queries) 0 August 15th 06 06:21 PM
Toggle Button NavEx Excel Worksheet Functions 1 May 23rd 06 02:40 AM


All times are GMT +1. The time now is 11:24 AM.

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

About Us

"It's about Microsoft Excel"