Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 45
Default Conditional Formatting - Losing Values

MS Excel 2007
I set up conditional formatting looking for certain values. The formatting
works as expected; when I save, close, then re-open the worksheet, the values
disappear. Any ideas as to what is causing this problem?
--
Dana
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 22,906
Default Conditional Formatting - Losing Values

The values disappear from where?

Cells or CF parameters?


Gord Dibben MS Excel MVP

On Mon, 26 Oct 2009 09:07:02 -0700, Dana
wrote:

MS Excel 2007
I set up conditional formatting looking for certain values. The formatting
works as expected; when I save, close, then re-open the worksheet, the values
disappear. Any ideas as to what is causing this problem?


  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 45
Default Conditional Formatting - Losing Values

Gord,
Disappear from CF Parameters - Specifically "Format all cells based on their
values", Format Style "Icon Sets", Icon Style "3 traffic lights - unrimmed"
and "when value is" ... the values I place in the dialog boxes "when value
is" are lost when I apply, save, exit, and re-open.
--
Dana


"Gord Dibben" wrote:

The values disappear from where?

Cells or CF parameters?


Gord Dibben MS Excel MVP

On Mon, 26 Oct 2009 09:07:02 -0700, Dana
wrote:

MS Excel 2007
I set up conditional formatting looking for certain values. The formatting
works as expected; when I save, close, then re-open the worksheet, the values
disappear. Any ideas as to what is causing this problem?


.

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2
Default Conditional Formatting - Losing Values

I have having the same problem, it is very weird. Please let me know
if someone fixes this.
  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2
Default Conditional Formatting - Losing Values

I figured it out after a ton of digging in forums. Turns out that
there is some sort of CSS style sheet that is causing the problem.
Copy and paste the below code into your "this worksheet" section of
VBA code for excel (F12 shortcut key to open code view). After
pasting the code, run the macro, save the file, close, re-open, ensure
that your changes are still there, remove the code, and you should be
good to go from now on...

Copy and Paste from he


Sub RebuildDefaultStyles()

'The purpose of this macro is to remove all styles in the active
'workbook and rebuild the default styles.
'It rebuilds the default styles by merging them from a new workbook.

'Dimension variables.
Dim MyBook As Workbook
Dim tempBook As Workbook
Dim CurStyle As Style

'Set MyBook to the active workbook.
Set MyBook = ActiveWorkbook
On Error Resume Next
'Delete all the styles in the workbook.
For Each CurStyle In MyBook.Styles
'If CurStyle.Name < "Normal" Then CurStyle.Delete
Select Case CurStyle.Name
Case "20% - Accent1", "20% - Accent2", _
"20% - Accent3", "20% - Accent4", "20% - Accent5", "20%
- Accent6", _
"40% - Accent1", "40% - Accent2", "40% - Accent3", "40%
- Accent4", _
"40% - Accent5", "40% - Accent6", "60% - Accent1", "60%
- Accent2", _
"60% - Accent3", "60% - Accent4", "60% - Accent5", "60%
- Accent6", _
"Accent1", "Accent2", "Accent3", "Accent4", "Accent5",
"Accent6", _
"Bad", "Calculation", "Check Cell", "Comma", "Comma
[0]", "Currency", _
"Currency [0]", "Explanatory Text", "Good", "Heading
1", "Heading 2", _
"Heading 3", "Heading 4", "Input", "Linked Cell",
"Neutral", "Normal", _
"Note", "Output", "Percent", "Title", "Total", "Warning
Text"
'Do nothing, these are the default styles
Case Else
CurStyle.Delete
End Select

Next CurStyle

'Open a new workbook.
Set tempBook = Workbooks.Add

'Disable alerts so you may merge changes to the Normal style
'from the new workbook.
Application.DisplayAlerts = False

'Merge styles from the new workbook into the existing workbook.
MyBook.Styles.Merge Workbook:=tempBook

'Enable alerts.
Application.DisplayAlerts = True

'Close the new workbook.
tempBook.Close

End Sub


  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default Conditional Formatting - Losing Values

Hi KFitz

Could you please let me know what this code is exactly doing?? I am
facing more or less the same issue and run your code but looks like
the problem is not resolved..

your help on this would be highly appreciated.

Thanks!!
Milind
  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default Conditional Formatting - Losing Values

Didn't work for me either.


On Oct 29, 6:23*pm, Milind wrote:
Hi KFitz

Could you please let me know what this code is exactly doing?? I am
facing more or less the same issue and run your code but looks like
the problem is not resolved..

your help on this would be highly appreciated.

Thanks!!
Milind


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
how do I do conditional formatting for absolute values? Carol Excel Worksheet Functions 4 April 5th 23 01:12 PM
Losing Conditional Formatting after Save robert morris Excel Discussion (Misc queries) 5 April 11th 09 03:21 PM
How do I stop an pivot report from losing conditional formatting Deb Excel Discussion (Misc queries) 0 November 30th 05 07:19 PM
Losing conditional formatting when saving Eric FD Excel Discussion (Misc queries) 3 January 18th 05 11:42 PM
Values w/conditional formatting Fred Timmons Excel Worksheet Functions 7 January 4th 05 03:31 AM


All times are GMT +1. The time now is 04:09 PM.

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"