Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,253
Default If Col is hidden then add data to a cell

I stopped using a separate column for Currency sign when I transferred
from Lotus 123 to Excel in 1990. I use number formatting instead.


keepITcool

< email : keepitcool chello nl (with @ and .)
< homepage: http://members.chello.nl/keepitcool


"Stuart" wrote:

How best to detect if a column (£Col) has been hidden
by the user, and if it has, then add a '£' to the cell
immediately to the left of it (same row), please?.

Since that cell will already contain data, I need to place
the '£' at the very righthand boundary of the cell.

So:
the original layout was:

Col M N O
Row
56 Collection £ 225404.29

If user hides col N, then I need to get '£' into M56
like 'Collection £', and if col M is not wide enough
then I need to widen it.

If the sheet is called 'SUMMARY' then '£' cannot go
into M56. It will have to go into O56, like
'£ 225404.29'.

O56 contains a SUM formula. Is that a problem?

Any help with any of these questions would be much
appreciated.

Regards.



---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.505 / Virus Database: 302 - Release Date: 30/07/2003



  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 413
Default If Col is hidden then add data to a cell

Col N contains user data. Every 50 odd rows or so, a '£' value
coincides where a 'Collection' row occurs. I need to permit
user to hide £Col, but for presentation purposes I wish to
add the '£' value as previously described.

Regards.

"keepitcool" wrote in message
...
I stopped using a separate column for Currency sign when I transferred
from Lotus 123 to Excel in 1990. I use number formatting instead.


keepITcool

< email : keepitcool chello nl (with @ and .)
< homepage: http://members.chello.nl/keepitcool


"Stuart" wrote:

How best to detect if a column (£Col) has been hidden
by the user, and if it has, then add a '£' to the cell
immediately to the left of it (same row), please?.

Since that cell will already contain data, I need to place
the '£' at the very righthand boundary of the cell.

So:
the original layout was:

Col M N O
Row
56 Collection £ 225404.29

If user hides col N, then I need to get '£' into M56
like 'Collection £', and if col M is not wide enough
then I need to widen it.

If the sheet is called 'SUMMARY' then '£' cannot go
into M56. It will have to go into O56, like
'£ 225404.29'.

O56 contains a SUM formula. Is that a problem?

Any help with any of these questions would be much
appreciated.

Regards.



---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.505 / Virus Database: 302 - Release Date: 30/07/2003





---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.507 / Virus Database: 304 - Release Date: 04/08/2003


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,253
Default If Col is hidden then add data to a cell

use outlines,
then for presentation you select level 2 (unhiding the hidden columns)
and the user works with level 1



keepITcool

< email : keepitcool chello nl (with @ and .)
< homepage: http://members.chello.nl/keepitcool


"Stuart" wrote:

Col N contains user data. Every 50 odd rows or so, a '£' value
coincides where a 'Collection' row occurs. I need to permit
user to hide £Col, but for presentation purposes I wish to
add the '£' value as previously described.

Regards.

"keepitcool" wrote in message
...
I stopped using a separate column for Currency sign when I

transferred
from Lotus 123 to Excel in 1990. I use number formatting instead.


keepITcool

< email : keepitcool chello nl (with @ and .)
< homepage: http://members.chello.nl/keepitcool


"Stuart" wrote:

How best to detect if a column (£Col) has been hidden
by the user, and if it has, then add a '£' to the cell
immediately to the left of it (same row), please?.

Since that cell will already contain data, I need to place
the '£' at the very righthand boundary of the cell.

So:
the original layout was:

Col M N O
Row
56 Collection £ 225404.29

If user hides col N, then I need to get '£' into M56
like 'Collection £', and if col M is not wide enough
then I need to widen it.

If the sheet is called 'SUMMARY' then '£' cannot go
into M56. It will have to go into O56, like
'£ 225404.29'.

O56 contains a SUM formula. Is that a problem?

Any help with any of these questions would be much
appreciated.

Regards.



---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.505 / Virus Database: 302 - Release Date: 30/07/2003





---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.507 / Virus Database: 304 - Release Date: 04/08/2003




  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 413
Default If Col is hidden then add data to a cell

We might be at cross-purposes here, due to my poor
explanation.

The user has chosen a sheet(s) to print, and has then
opted to hide a column(s). The sheet is a series of
'pages' finishing with a '£' value in col N (£Col) and
a total in col O at the end of each 'page'.

The values in col N above '£' in each page are Nett
values. If the user choses to hide these from the Client,
then they hide Col N.....which hides '£'.

I would like to trap user hiding col N (ideally a way to
trap any specific column being hidden), then if it is
hidden, add '£' to col M (same row) for a normal
sheet, or add to col O for a 'SUMMARY' sheet.

Then when each range ('page') is printed, the '£' is
there for presentation purposes.

Thanks for your responses.

Regards.


"keepitcool" wrote in message
...
use outlines,
then for presentation you select level 2 (unhiding the hidden columns)
and the user works with level 1



keepITcool

< email : keepitcool chello nl (with @ and .)
< homepage: http://members.chello.nl/keepitcool


"Stuart" wrote:

Col N contains user data. Every 50 odd rows or so, a '£' value
coincides where a 'Collection' row occurs. I need to permit
user to hide £Col, but for presentation purposes I wish to
add the '£' value as previously described.

Regards.

"keepitcool" wrote in message
...
I stopped using a separate column for Currency sign when I

transferred
from Lotus 123 to Excel in 1990. I use number formatting instead.


keepITcool

< email : keepitcool chello nl (with @ and .)
< homepage: http://members.chello.nl/keepitcool


"Stuart" wrote:

How best to detect if a column (£Col) has been hidden
by the user, and if it has, then add a '£' to the cell
immediately to the left of it (same row), please?.

Since that cell will already contain data, I need to place
the '£' at the very righthand boundary of the cell.

So:
the original layout was:

Col M N O
Row
56 Collection £ 225404.29

If user hides col N, then I need to get '£' into M56
like 'Collection £', and if col M is not wide enough
then I need to widen it.

If the sheet is called 'SUMMARY' then '£' cannot go
into M56. It will have to go into O56, like
'£ 225404.29'.

O56 contains a SUM formula. Is that a problem?

Any help with any of these questions would be much
appreciated.

Regards.



---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.505 / Virus Database: 302 - Release Date: 30/07/2003





---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.507 / Virus Database: 304 - Release Date: 04/08/2003






---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.507 / Virus Database: 304 - Release Date: 04/08/2003


  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,253
Default If Col is hidden then add data to a cell

whatever.. i'd get rid of the € column and use cell formatting for the
last column.

if you want to check if a col is hidden

with Worksheets("Sheet1").Columns("C")
if .Hidden then .hidden=false
end with

it's a property from the range object..
however it wont work on a cell, it works on (series of)
Rows and Columns only

=select activecell.EntireColumn.Hidden will work

to just unhide all columns on the sheet use:

activesheet.columns.hidden=false



that what you wanted?


keepITcool

< email : keepitcool chello nl (with @ and .)
< homepage: http://members.chello.nl/keepitcool


"Stuart" wrote:

We might be at cross-purposes here, due to my poor
explanation.

The user has chosen a sheet(s) to print, and has then
opted to hide a column(s). The sheet is a series of
'pages' finishing with a '£' value in col N (£Col) and
a total in col O at the end of each 'page'.

The values in col N above '£' in each page are Nett
values. If the user choses to hide these from the Client,
then they hide Col N.....which hides '£'.

I would like to trap user hiding col N (ideally a way to
trap any specific column being hidden), then if it is
hidden, add '£' to col M (same row) for a normal
sheet, or add to col O for a 'SUMMARY' sheet.

Then when each range ('page') is printed, the '£' is
there for presentation purposes.

Thanks for your responses.

Regards.


"keepitcool" wrote in message
...
use outlines,
then for presentation you select level 2 (unhiding the hidden

columns)
and the user works with level 1



keepITcool

< email : keepitcool chello nl (with @ and .)
< homepage: http://members.chello.nl/keepitcool


"Stuart" wrote:

Col N contains user data. Every 50 odd rows or so, a '£' value
coincides where a 'Collection' row occurs. I need to permit
user to hide £Col, but for presentation purposes I wish to
add the '£' value as previously described.

Regards.

"keepitcool" wrote in message
...
I stopped using a separate column for Currency sign when I

transferred
from Lotus 123 to Excel in 1990. I use number formatting instead.


keepITcool

< email : keepitcool chello nl (with @ and .)
< homepage: http://members.chello.nl/keepitcool


"Stuart" wrote:

How best to detect if a column (£Col) has been hidden
by the user, and if it has, then add a '£' to the cell
immediately to the left of it (same row), please?.

Since that cell will already contain data, I need to place
the '£' at the very righthand boundary of the cell.

So:
the original layout was:

Col M N O
Row
56 Collection £ 225404.29

If user hides col N, then I need to get '£' into M56
like 'Collection £', and if col M is not wide enough
then I need to widen it.

If the sheet is called 'SUMMARY' then '£' cannot go
into M56. It will have to go into O56, like
'£ 225404.29'.

O56 contains a SUM formula. Is that a problem?

Any help with any of these questions would be much
appreciated.

Regards.



---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.505 / Virus Database: 302 - Release Date:

30/07/2003





---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.507 / Virus Database: 304 - Release Date: 04/08/2003






---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.507 / Virus Database: 304 - Release Date: 04/08/2003





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
drag data vertically over hidden cells.. ignore hidden cells Derwood Excel Discussion (Misc queries) 1 March 6th 08 10:59 PM
How do I detect hidden worksheets or hidden data on a worksheet? Alice Excel Discussion (Misc queries) 4 August 24th 06 03:38 AM
Hidden data - hidden chart Brisbane Rob Charts and Charting in Excel 2 April 1st 06 09:51 PM
Hidden Cell Data Darrell Excel Discussion (Misc queries) 2 July 22nd 05 12:56 AM
HOW DO I HIDE DATA AND SHOW A PLUS SIGN THAT I HAVE HIDDEN DATA H. tory Excel Discussion (Misc queries) 1 December 27th 04 09:54 PM


All times are GMT +1. The time now is 11:17 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"