+ Reply to Thread
Results 1 to 3 of 3

select an entire column except the merged cells

Hybrid View

  1. #1
    Registered User
    Join Date
    01-23-2014
    Location
    Denver, Colorado
    MS-Off Ver
    Excel 2010
    Posts
    36

    select an entire column except the merged cells

    Hello everyone,
    I've been working on a macro which delivers a daily report.
    the report is made up of 4 sections (received orders, scheduled orders, pending orders and unusual orders)
    each section is topped by a title which is a merge of all columns (A through I)
    the problem I am having is that the first column displays case numbers (to be displayed in text or number formats) and the 7th and 8th columns are dates
    When I try to have the VBA select the first column to format as a number, it will select all columns due to the merged cells
    is there a way to format only non-merged cells of a columns

    this is the section I currently use for formatting but it doesn't actually work, (everything ends up in a date format)

    Sheets("Full Hp Report").Select
    Columns("A:A").Select
    Selection.NumberFormat = "0"
     Columns("G:H").Select
        Selection.NumberFormat = "m/d/yyyy"


    Thanks

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,048

    Re: select an entire column except the merged cells

    simple solution - remove the merging, it only causes problems
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Registered User
    Join Date
    01-23-2014
    Location
    Denver, Colorado
    MS-Off Ver
    Excel 2010
    Posts
    36

    Re: select an entire column except the merged cells

    I have tried that but the entire sheet is then emailed out and the text wraps within the cell making the title rows huge (in 4 sections of 8 different emails)
    Is there a solution for that?

+ 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] How to Select an entire table column for a Chart Series Values in VBA
    By MattTran in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-11-2013, 03:37 PM
  2. Creating a filter to select sets of column based on merged cell headers
    By keepingitcole in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-25-2013, 11:43 AM
  3. Select a Range of Cells Offset from a Selected Merged cell
    By kelvomatic in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 06-07-2013, 05:52 PM
  4. select entire column based on cell value
    By jcfrancisco in forum Excel General
    Replies: 5
    Last Post: 09-26-2011, 09:47 AM
  5. Select entire column for max function
    By ssu95bm in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-02-2011, 10:36 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