preserve formatting

  1. T

    ClearContents VBA is clearing my Conditional Formatting

    Hi there, I'm trying to figure out a way to clear cells without clearing the applied Conditional Formatting rules from those cells. Here's my code: Sub WipeSheet() ' ' WipeSheet Macro ' Wipes all entries in the sheet besides formulas ' ' Keyboard Shortcut: Ctrl+Shift+W ' PopupPrompt =...
  2. cyberwolf

    Preserving Range data Type while trimming trailing spaces.

    I found this thread in my search Trim Column in VBA and was able to convert Rick Rothstein's code to loop through all of the columns in a worksheet. Code will be listed below. Trouble is We have columns that have data with leading zero's, and, this code see to convert each column to general...
  3. B

    VBA Code to Preserve Formatting Based on Index Match Formula

    First tab: 9.17.19 Second tab: Next Download I'm using index/match to pull whatever is in $O$2:$U$300 in the first tab based on if $A2 matches $A:$A in the first tab. So, in cell O2 of the second tab, IFERROR((INDEX('9.17.19'!O:O,MATCH($A2,'9.17.19'!$A:$A,0)))&"","") I use a similar formula for...
  4. E

    Copy table from Word to Excel while preserving formatting

    I've been coding VBA for many years but this one is a real head-scratcher. The task is simple - Copy data from a table from Microsoft Word to Microsoft Excel. The challenge: Maintain the formatting of the data from Word, which includes bulleted lists and multiple paragraphs. More...
  5. J

    Worksheets copied into new workbook - Cell Color/Fill Changes - Unintentional - Preserve Cell Color/Fill

    Hello, I am using the following code (which works great) to export the sheets named "Labor BOE xxxx" after my spreadsheet creates multiple copies of a template worksheet, inserts summary tables, and populates the summary tables. The one issue that I haven't been able to figure out is... after...
  6. derek.hughes

    Split worksheets to separate workbooks - preserve password and formatting

    I found this code on the interwebs and it works great for splitting my worksheets to separate workbooks. However, I am wondering if someone can help me tweak it so it preserves the password protection and unchecks "display gridlines" when it separates. I am more concerned with the password...

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top