+ Reply to Thread
Results 1 to 3 of 3

VB Code to format cells

  1. #1
    Valued Forum Contributor
    Join Date
    01-18-2007
    Location
    Georgia
    MS-Off Ver
    2010
    Posts
    4,434

    VB Code to format cells

    Hello:

    I need simple VB Code to format the cells as below:

    Column starting M5:M1000 to 0 (Integer)and doing every 4th column last column EC

    Column starting N5:N1000 to 0.00 (2 decimal) and doing every 4th column last column ED

    Please let me know if you have any questions.
    Thanks.

    Riz

  2. #2
    Forum Expert
    Join Date
    09-20-2011
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    2,278

    Re: VB Code to format cells

    Hello Riz
    Maybe something like the following code could work for you.

    Please Login or Register  to view this content.
    DBY

  3. #3
    Valued Forum Contributor
    Join Date
    01-18-2007
    Location
    Georgia
    MS-Off Ver
    2010
    Posts
    4,434

    Re: VB Code to format cells

    Hello DNY:

    Thanks a lot...it works.
    Riz

+ 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. [SOLVED] VBA code for Division of two cells with 0.00 Number format
    By Shahadat65 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-21-2016, 01:38 PM
  2. Disable Format Cells Option Using VBA Code
    By SmallJack in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-18-2015, 01:18 AM
  3. [SOLVED] Code to Automatically Format Cells
    By katkth7533 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-06-2014, 01:54 PM
  4. VBA code to copy selected Cells from one sheet to another without changing the format
    By sierra_stone in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-15-2014, 12:06 PM
  5. need VBA code to copy Certian Cells from one sheet to another in same format
    By splash_b in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-13-2014, 01:50 AM
  6. 2010 VBA Code for: format the print area to include only rows with populated cells
    By sambo24 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-19-2013, 10:57 AM
  7. Toggle Code to format-unformat range of cells
    By Zimbo in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-09-2008, 03:01 AM

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