Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 149
Default Default Cell Formatting

What vba code will format a cell back to Excel's default formatting with the
default borders, clear/white background, arial 10 font, normal text, etc.?


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,202
Default Default Cell Formatting

What vba code will format a cell back to Excel's default formatting
with the default borders, clear/white background, arial 10 font,
normal text, etc.?


If it's the active cell.... ActiveCell.Clear

If it's a range... Range("A4:K12").Clear

Rick
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 367
Default Default Cell Formatting

Cells.clear

should work, if it doesnt, you could record a macro while setting up a
cell the way you want and use that.

hth carlo
  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,600
Default Default Cell Formatting

Another one -

Activesheet.Range("A1").ClearFormats

What both .Clear and .ClearFormats actually do is apply the workbook's
Normal style (Formats / Styles).

In a new workbook based on the default template, the Normal style's font is
set from -
Application.StandardFont & .StandardFontSize (Tools / Options / General).
After changing these settings, manually or programmatically, need to restart
Excel for them to take effect.

Regards,
Peter T

"scott" wrote in message
...
What vba code will format a cell back to Excel's default formatting with

the
default borders, clear/white background, arial 10 font, normal text, etc.?




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
Default values for cell formatting and Pivot tables Idoia Excel Discussion (Misc queries) 1 June 7th 08 02:36 AM
Default formatting for charts Sox[_2_] Charts and Charting in Excel 1 March 15th 08 05:04 PM
Setting default formatting Lowkey Setting up and Configuration of Excel 1 March 23rd 06 04:59 PM
Default formatting rmellison Charts and Charting in Excel 1 September 16th 05 05:02 PM
How do I change the default cell formatting to be text? mojitsu Excel Discussion (Misc queries) 2 August 18th 05 05:37 PM


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