+ Reply to Thread
Results 1 to 4 of 4

Automatically calculate and color rows/columns

  1. #1
    Registered User
    Join Date
    09-04-2008
    Location
    Encino, Ca
    Posts
    3

    Automatically calculate and color rows/columns

    Does anyone know what code I would use to automatically calculate the number of rows and the number of columns, and then change the background color of every other row?

    I have spreadsheets that I make for work, some may have 10 rows and some may have 16,000 rows, I want to be able to determine the number of rows and color just the even ones. Same thing with the columns, some may have 5 others may have 25 columns; I want the color to go to the last column only.

    I attached a JPG of what my spread sheets look like.

    Regards,
    Shane
    Attached Images Attached Images

  2. #2
    Registered User
    Join Date
    09-04-2008
    Location
    Bentonville, AR
    Posts
    10
    You can use this.

    Please Login or Register  to view this content.
    Keep in mind you'll have to reference the wb & worksheet in place of using myWorksheet.

    Please Login or Register  to view this content.
    HTHs...
    Last edited by flee01; 09-04-2008 at 07:22 PM.

  3. #3
    Registered User
    Join Date
    09-04-2008
    Location
    Encino, Ca
    Posts
    3

    Thumbs up Thanks

    It worked beautifully!

    Cheers

  4. #4
    Registered User
    Join Date
    09-04-2008
    Location
    Encino, Ca
    Posts
    3

    current workbook and sheet

    Is there a way to automatically select the current workbook and sheet? Some of my tables are already named and I would like to be able to open them and run the macro to format them.

+ 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