+ Reply to Thread
Results 1 to 1 of 1

Replacing styles in a workbook from another workbook

  1. #1
    Registered User
    Join Date
    12-23-2014
    Location
    ECU
    MS-Off Ver
    2010
    Posts
    3

    Replacing styles in a workbook from another workbook

    Hello everybody, please your help with the following macro coding:

    Ranges:
    Please see attached image.

    Purpose:
    Replace the styles in Workbook2 from macros in Workbook1.

    Some definitions:
    a) Range (J7:J13) in Workbook1 contains a list of the current styles in Workbook2.
    b) Range (K7:K13) in Workbook1 contains the name of the new styles to apply in Workbook2.
    c) Workbook1 contains the following macros: Normal1,BlueHeading,MainHeading, and Total2. These macros have the codes to modify the styles accordingly. For example BlueHeading macro makes the font blue, Normal1 makes font Calibri 11, and so on.

    Code should:
    a) Replace the current styles with the assigned target styles by running the corresponding macro and re-labeling the styles. For example Heading (current style in workbook2) should be replaced by MainHeading Style by running the macro with the same name that is in Workbook1.
    b) Identify blanks in target style range and do nothing with the corresponding current styles. In present case Percent, Thousands, and Subtotal styles should remain as they are.

    Please let me know if something is confusing.

    Thanks in advance for your help!
    Attached Images Attached Images

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Remove unused styles from workbook
    By Gossy in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-02-2014, 03:08 AM
  2. Count number of styles in a workbook
    By neodjandre in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-27-2007, 09:44 AM
  3. Copying Styles from One Workbook to Another in Excel 2007
    By ExcelTip in forum Tips and Tutorials
    Replies: 0
    Last Post: 11-07-2007, 10:24 AM
  4. Removing Corrupt styles in an excel workbook
    By anonymouse in forum Excel General
    Replies: 1
    Last Post: 12-17-2005, 11:25 AM
  5. [SOLVED] Macro to delete un used styles in a workbook!
    By John in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-26-2005, 05:06 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1