+ Reply to Thread
Results 1 to 3 of 3

Formatting Without Selecting Range

  1. #1
    Forum Contributor
    Join Date
    03-24-2005
    Location
    Wisconsin
    MS-Off Ver
    2007
    Posts
    378

    Formatting Without Selecting Range - Solved

    I have an associate who has a "template" he uses for scheduling our production. He frequently highlights and drags items in a schedule from one area (time frame) to another.

    When he does this he end up with the default border formatting in the area he dragged from.

    I created a simple macro for him that will reformat his work range to the original settings.
    Please Login or Register  to view this content.
    There are a couple of specific ranges with similar, but different border formats.

    My question is: How do I accomplish the formatting of borders without actually selecting the range.

    He would like to have a button that will do the formatting, but not end up with the active cell changing when he is done.
    This worked for me:
    Please Login or Register  to view this content.
    Last edited by DCSwearingen; 08-23-2007 at 12:36 PM. Reason: Found Solution
    Thanks!
    Dennis

    I am using Windows 7 and Office 2007, all of my posts are based on this.

  2. #2
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258
    Hello Dennis,

    This macro will format your ranges without selecting them. It places a box around the cells, but this is to give you an idea how to do this. Change the worksheet name in blue to the worksheet your reformatting.
    Please Login or Register  to view this content.
    Sincerely,
    Leith Ross
    Last edited by Leith Ross; 08-23-2007 at 12:59 PM.

  3. #3
    Forum Contributor
    Join Date
    03-24-2005
    Location
    Wisconsin
    MS-Off Ver
    2007
    Posts
    378

    Hello Leith

    Good afternoon Leith!

    Thank you for your help!

    I played with your code to adapt to what my associate wanted to happen. Here is how I ended up:
    Please Login or Register  to view this content.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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