Results 1 to 6 of 6

Thread: How to expand and collapse columns in Excel

  1. #1
    Join Date
    Feb 2009
    Posts
    58

    How to expand and collapse columns in Excel

    hie,

    Is there a way to expand and collapse the columns in Microsoft Excel ? If possible then how ? Please somebody give the relevant information or ideas about this feature....

    thanks

  2. #2
    Join Date
    May 2008
    Posts
    4,570

    Re: How to expand and collapse columns in Excel

    Use the following code according to your needs and check whether you can implement the required feature.

    Code:
    Sub HideG_UnhideG()  
      
    If Columns("c:j").EntireColumn.Hidden = True Then  
       Columns("c:j").EntireColumn.Hidden = False  
       ActiveSheet.Shapes("toggleit").TextFrame.Characters.Text = _  "HIDE"  
    Else  
      Columns("c:j").EntireColumn.Hidden = True  
      ActiveSheet.Shapes("Toggleit").TextFrame.Characters.Text = _  "SHOW"  
    End If  
      
     'can use =not if only ONE change.....  
     'Columns("g").EntireColumn.Hidden = Not Columns("g").EntireColumn.Hidden  
      
    End Sub

  3. #3
    Join Date
    May 2008
    Posts
    4,345

    Re: How to expand and collapse columns in Excel

    You don't need VBA at all for this. You just need to use an Excel function called Group and Outline facility.
    You can find this facility in the Data menu.

  4. #4
    Join Date
    May 2008
    Posts
    4,831

    Re: How to expand and collapse columns in Excel

    Try this :
    - Select the columns you want to be expanded/collapsed
    - Data > Group and Outline > Group

  5. #5
    Join Date
    Aug 2010
    Posts
    2

    how to put date format 2010-08-30 in csv

    hi

    can any one guide me how to solve the date format in csv file.

    in excel 2010-08-30 or 2010/08/30 suppots but when i converting into csv file it won't accepts.

    in csv 2010-08-30 not supports. can any one solve my problem

    i am looking for solution.

  6. #6
    Join Date
    Mar 2010
    Posts
    1,998

    Re: How to expand and collapse columns in Excel

    Microsoft has released a hot fix for that. This is a common issue with most of the user where you date format changes when you export or import data in csv. This issue is applicable to Microsoft Excel. For that go to below link and read some fixing solutions. This might help you or else you can download the hotfix and install the same. This is a vba issue.
    CSV Hotfix

Similar Threads

  1. Is it possible to collapse rows in Excel without plus sign
    By Shard.K in forum MS Office Support
    Replies: 2
    Last Post: 23-02-2012, 02:13 PM
  2. Replies: 5
    Last Post: 24-01-2012, 01:10 PM
  3. How to multiply two columns in Excel
    By Lanka Boy in forum Windows Software
    Replies: 2
    Last Post: 08-01-2012, 03:06 AM
  4. How to collapse rows in Excel with a plus sign to open/close
    By Raju Chacha in forum Tips & Tweaks
    Replies: 1
    Last Post: 06-01-2012, 03:49 PM
  5. Java program to expand or collapse all JTree nodes.
    By KALIDA in forum Software Development
    Replies: 4
    Last Post: 22-01-2010, 05:04 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
  •  
Page generated in 1,713,867,063.38045 seconds with 17 queries