+ Reply to Thread
Results 1 to 4 of 4

Excel Hide Columns by Macro

  1. #1
    Registered User
    Join Date
    05-08-2010
    Location
    Qatar
    MS-Off Ver
    Excel 2003
    Posts
    24

    Excel Hide Columns by Macro

    I want to hide columns by typing words, (e.x) Column A, good,very good ,poor & avarage
    If select good from the list, the Column D, F, H should be hide,same way if select poor C,E.G
    should be hide,but D,F,H unhide, likewise.This should be done through Macro. Can any one Help me?

    Regards,

  2. #2
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: Excel Hide Columns by Macro

    To best describe or illustrate your problem you would be better off attaching a dummy workbook, the workbook should contain the same structure and some dummy data of the same type as the type you have in your real workbook - so, if a cell contains numbers & letters in this format abc-123 then that should be reflected in the dummy workbook.

    If needed supply a before and after sheet in the workbook so the person helping you can see what you are trying to achieve.

    Doing this will ensure you get the result you need!
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  3. #3
    Registered User
    Join Date
    05-08-2010
    Location
    Qatar
    MS-Off Ver
    Excel 2003
    Posts
    24

    Post Excel Hide Columns by Macro

    Dear All,
    column C4 would have one of several codes (GOOD, VERY GOOD, AVERAGE, POOR, etc.), When the user selects either “GOOD”, “VERY GOOD”, “AVERAGE” or “POOR”, I want to hide columns.(E.X) If select GOOD, then E, F should be hide, if it is very good, I,J,K,L should hide. My original sheet is password protected. I have attached dummy sheet.

    Thanks,










    .
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    05-08-2010
    Location
    Qatar
    MS-Off Ver
    Excel 2003
    Posts
    24

    Average calculation Depending On Rows

    Hi,

    The excel sheet contains three rows, C4,C5,C6 & D Column is Average Column.

    Now my question is "By Macro" i want to calculate Average & If it is data two rows

    that also caluculate Average.( Data may be 3 OR 2 Rows, but Average should be done.)



    Best Regards,
    Attached Files Attached Files
    Last edited by friendlykashish; 05-20-2010 at 01:14 PM. Reason: model Attachment

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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