+ Reply to Thread
Results 1 to 3 of 3

fill column and no fill column macro

  1. #1
    Registered User
    Join Date
    04-30-2014
    Location
    Edinburgh
    MS-Off Ver
    Excel 2007
    Posts
    16

    fill column and no fill column macro

    Hi

    Trying to learn vba and want to make a button to highlight a column, ie fill with colour and unfill.

    My first thought was to have a button on row 4 of all columns with a fill no fill button and figure out how to run a macro for that.

    I just need to get data from each column quickly and making sure people can do this without looking at other column data. So i can either fill colour in all other columns except for the one im looking at or highlight the one i am looking at.

    Is it possible to make a macro/button to fill and unfill the column i click on. Ie click on fill and click on any cell in that column and the same with an unfill button?

    Any tips to do this?

    I currently just select column click on the style green and then go into colour and unfill.

  2. #2
    Forum Expert mrice's Avatar
    Join Date
    06-22-2004
    Location
    Surrey, England
    MS-Off Ver
    Excel 2013
    Posts
    4,967

    Re: fill column and no fill column macro

    Please see the attachment

    Code is below.

    Please Login or Register  to view this content.
    Attached Files Attached Files
    Martin

  3. #3
    Registered User
    Join Date
    04-30-2014
    Location
    Edinburgh
    MS-Off Ver
    Excel 2007
    Posts
    16

    Re: fill column and no fill column macro

    Brilliant - i have managed to change the colour and apply to other workbooks. It has been given me a better understanding of how to do macros.

    Thank you lots

+ 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. Macro to fill Column B with system date when Column A changes
    By mahi4tech in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-18-2013, 09:13 AM
  2. Macro to fill a column with a variable
    By foxy_420 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-21-2013, 09:34 AM
  3. Insert column and fill column upto where data is in previous column
    By aka189 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 11-24-2012, 06:07 AM
  4. [SOLVED] If column A has gray fill and column B has no fill, delete that row
    By killhuman in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-11-2012, 05:36 PM
  5. Replies: 1
    Last Post: 09-07-2011, 05:57 PM

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