Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 57
Default Remove fill color for cells without text only

Hello,

I have a huge spreadsheet where I need to remove the lavender fill color
only on the cells that have no text in them. (I want to keep the lavender
fill color in the cells that do have text.)
I tried Find/Replace but it tried to remove the fill color for every cell.

Can someone help, please?

Thank you!
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,058
Default Remove fill color for cells without text only

try this little macro:

Sub fillout()
For Each r In ActiveSheet.UsedRange
If Application.WorksheetFunction.IsText(r.Value) Then
Else
r.Interior.ColorIndex = lxnone
End If
Next
End Sub



--
Gary''s Student - gsnu200755


"Studebaker" wrote:

Hello,

I have a huge spreadsheet where I need to remove the lavender fill color
only on the cells that have no text in them. (I want to keep the lavender
fill color in the cells that do have text.)
I tried Find/Replace but it tried to remove the fill color for every cell.

Can someone help, please?

Thank you!

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 57
Default Remove fill color for cells without text only

Thanks Gary's Student. I'm not too familiar with macros so bear with me.
I know I can paste this macro in the Visual Basic Editor but what do I do
then?

Do I need to go back to the spreadsheet and do something afterwards?

Thanks

"Gary''s Student" wrote:

try this little macro:

Sub fillout()
For Each r In ActiveSheet.UsedRange
If Application.WorksheetFunction.IsText(r.Value) Then
Else
r.Interior.ColorIndex = lxnone
End If
Next
End Sub



--
Gary''s Student - gsnu200755


"Studebaker" wrote:

Hello,

I have a huge spreadsheet where I need to remove the lavender fill color
only on the cells that have no text in them. (I want to keep the lavender
fill color in the cells that do have text.)
I tried Find/Replace but it tried to remove the fill color for every cell.

Can someone help, please?

Thank you!

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,058
Default Remove fill color for cells without text only


Macros are very easy to install and use:

1. ALT-F11 brings up the VBE window
2. ALT-I
ALT-M opens a fresh module
3. paste the stuff in and close the VBE window

If you save the workbook, the macro will be saved with it.

To use the macro from the normal Excel window:

1. ALT-F8
2. Select the macro
3. Touch Run



To remove the macro:

1. bring up the VBE window as above
2. clear the code out
3. close the VBE window

To learn more about macros in general, see:

http://www.mvps.org/dmcritchie/excel/getstarted.htm




--
Gary''s Student - gsnu200755


"Studebaker" wrote:

Thanks Gary's Student. I'm not too familiar with macros so bear with me.
I know I can paste this macro in the Visual Basic Editor but what do I do
then?

Do I need to go back to the spreadsheet and do something afterwards?

Thanks

"Gary''s Student" wrote:

try this little macro:

Sub fillout()
For Each r In ActiveSheet.UsedRange
If Application.WorksheetFunction.IsText(r.Value) Then
Else
r.Interior.ColorIndex = lxnone
End If
Next
End Sub



--
Gary''s Student - gsnu200755


"Studebaker" wrote:

Hello,

I have a huge spreadsheet where I need to remove the lavender fill color
only on the cells that have no text in them. (I want to keep the lavender
fill color in the cells that do have text.)
I tried Find/Replace but it tried to remove the fill color for every cell.

Can someone help, please?

Thank you!

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 57
Default Remove fill color for cells without text only

YEAHHH!!!! It worked! You saved me a great deal of time!

Thanks, Gary"s Student!

"Gary''s Student" wrote:


Macros are very easy to install and use:

1. ALT-F11 brings up the VBE window
2. ALT-I
ALT-M opens a fresh module
3. paste the stuff in and close the VBE window

If you save the workbook, the macro will be saved with it.

To use the macro from the normal Excel window:

1. ALT-F8
2. Select the macro
3. Touch Run



To remove the macro:

1. bring up the VBE window as above
2. clear the code out
3. close the VBE window

To learn more about macros in general, see:

http://www.mvps.org/dmcritchie/excel/getstarted.htm




--
Gary''s Student - gsnu200755


"Studebaker" wrote:

Thanks Gary's Student. I'm not too familiar with macros so bear with me.
I know I can paste this macro in the Visual Basic Editor but what do I do
then?

Do I need to go back to the spreadsheet and do something afterwards?

Thanks

"Gary''s Student" wrote:

try this little macro:

Sub fillout()
For Each r In ActiveSheet.UsedRange
If Application.WorksheetFunction.IsText(r.Value) Then
Else
r.Interior.ColorIndex = lxnone
End If
Next
End Sub



--
Gary''s Student - gsnu200755


"Studebaker" wrote:

Hello,

I have a huge spreadsheet where I need to remove the lavender fill color
only on the cells that have no text in them. (I want to keep the lavender
fill color in the cells that do have text.)
I tried Find/Replace but it tried to remove the fill color for every cell.

Can someone help, please?

Thank you!



  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 57
Default Remove fill color for cells without text only

Also, thanks for writing out how to deal with macros and remove them. That
really helped!

"Studebaker" wrote:

YEAHHH!!!! It worked! You saved me a great deal of time!

Thanks, Gary"s Student!

"Gary''s Student" wrote:


Macros are very easy to install and use:

1. ALT-F11 brings up the VBE window
2. ALT-I
ALT-M opens a fresh module
3. paste the stuff in and close the VBE window

If you save the workbook, the macro will be saved with it.

To use the macro from the normal Excel window:

1. ALT-F8
2. Select the macro
3. Touch Run



To remove the macro:

1. bring up the VBE window as above
2. clear the code out
3. close the VBE window

To learn more about macros in general, see:

http://www.mvps.org/dmcritchie/excel/getstarted.htm




--
Gary''s Student - gsnu200755


"Studebaker" wrote:

Thanks Gary's Student. I'm not too familiar with macros so bear with me.
I know I can paste this macro in the Visual Basic Editor but what do I do
then?

Do I need to go back to the spreadsheet and do something afterwards?

Thanks

"Gary''s Student" wrote:

try this little macro:

Sub fillout()
For Each r In ActiveSheet.UsedRange
If Application.WorksheetFunction.IsText(r.Value) Then
Else
r.Interior.ColorIndex = lxnone
End If
Next
End Sub



--
Gary''s Student - gsnu200755


"Studebaker" wrote:

Hello,

I have a huge spreadsheet where I need to remove the lavender fill color
only on the cells that have no text in them. (I want to keep the lavender
fill color in the cells that do have text.)
I tried Find/Replace but it tried to remove the fill color for every cell.

Can someone help, please?

Thank you!

  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 57
Default Remove fill color for cells without text only

Hello Gary"s Student,

I've run across the same situation I need it only for column G rows 2 thru
477 (ex: G2:G477).
Can you tell me how I can type the macro so I can just remove fill color for
only cells without text for just that area of my spreadsheet?

Thank you for your help!
Studebaker

"Gary''s Student" wrote:

try this little macro:

Sub fillout()
For Each r In ActiveSheet.UsedRange
If Application.WorksheetFunction.IsText(r.Value) Then
Else
r.Interior.ColorIndex = lxnone
End If
Next
End Sub



--
Gary''s Student - gsnu200755


"Studebaker" wrote:

Hello,

I have a huge spreadsheet where I need to remove the lavender fill color
only on the cells that have no text in them. (I want to keep the lavender
fill color in the cells that do have text.)
I tried Find/Replace but it tried to remove the fill color for every cell.

Can someone help, please?

Thank you!

  #8   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 22,906
Default Remove fill color for cells without text only

For Each r in ActiveSheet.Range("G2:G477")


Gord Dibben MS Excel MVP

On Mon, 26 Nov 2007 15:16:01 -0800, Studebaker
wrote:

Hello Gary"s Student,

I've run across the same situation I need it only for column G rows 2 thru
477 (ex: G2:G477).
Can you tell me how I can type the macro so I can just remove fill color for
only cells without text for just that area of my spreadsheet?

Thank you for your help!
Studebaker

"Gary''s Student" wrote:

try this little macro:

Sub fillout()
For Each r In ActiveSheet.UsedRange
If Application.WorksheetFunction.IsText(r.Value) Then
Else
r.Interior.ColorIndex = lxnone
End If
Next
End Sub



--
Gary''s Student - gsnu200755


"Studebaker" wrote:

Hello,

I have a huge spreadsheet where I need to remove the lavender fill color
only on the cells that have no text in them. (I want to keep the lavender
fill color in the cells that do have text.)
I tried Find/Replace but it tried to remove the fill color for every cell.

Can someone help, please?

Thank you!


  #9   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 57
Default Remove fill color for cells without text only

Thank you, Gord Dibben!

"Gord Dibben" wrote:

For Each r in ActiveSheet.Range("G2:G477")


Gord Dibben MS Excel MVP

On Mon, 26 Nov 2007 15:16:01 -0800, Studebaker
wrote:

Hello Gary"s Student,

I've run across the same situation I need it only for column G rows 2 thru
477 (ex: G2:G477).
Can you tell me how I can type the macro so I can just remove fill color for
only cells without text for just that area of my spreadsheet?

Thank you for your help!
Studebaker

"Gary''s Student" wrote:

try this little macro:

Sub fillout()
For Each r In ActiveSheet.UsedRange
If Application.WorksheetFunction.IsText(r.Value) Then
Else
r.Interior.ColorIndex = lxnone
End If
Next
End Sub



--
Gary''s Student - gsnu200755


"Studebaker" wrote:

Hello,

I have a huge spreadsheet where I need to remove the lavender fill color
only on the cells that have no text in them. (I want to keep the lavender
fill color in the cells that do have text.)
I tried Find/Replace but it tried to remove the fill color for every cell.

Can someone help, please?

Thank you!



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
Cell Fill Color and text color - changes for recipient Shadowman13 Excel Discussion (Misc queries) 0 March 8th 06 11:32 PM
HOW TO FORMATE CELLS TO COUNT CELLS WITH A FILL COLOR? Moore New Users to Excel 1 June 15th 05 06:41 PM
Shortcut for FILL COLOR and COLOR TEXT UABCSA Excel Discussion (Misc queries) 1 May 27th 05 10:01 PM
Excel 2003 will not display color fonts or color fill cells DaveC Excel Worksheet Functions 1 April 11th 05 04:38 PM
My excel 2003 wont let me fill cells with color or color the tabs. trizog New Users to Excel 2 February 22nd 05 06:43 PM


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