Consulting

Results 1 to 4 of 4

Thread: Solved: Passing row height properties to array

  1. #1
    VBAX Contributor
    Joined
    Apr 2006
    Posts
    144
    Location

    Solved: Passing row height properties to array

    Hi guys,

    I need your help please. I have a range say A10:A150 with different row heights. I need to copy the same row height properties in this range to various locations on the same sheet. The target locations have data on them so if I do a normal entire row copy this would overwrite the data in the target ranges. To get around this is to copy the data in each target range to somewhere else first, then copy entire rows from A10:A150 and paste back the data.

    Would there be a better VBA way in doing this? Load the range’s row height property in an array perhaps?

    Thanks for your thought and input in this.

    Regards


    KP

  2. #2
    VBAX Contributor
    Joined
    Apr 2006
    Posts
    144
    Location
    Hi again,

    Just found a non VBA solution - highlight the entire row area, use the format painter and apply it onto another range.

    Have a great weekend.

    Regards


    KP

  3. #3
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    A little aside, if you double-click the format painter, it stayd active until you Esc out, that is you can apply that format to many ranges.
    ____________________________________________
    Nihil simul inventum est et perfectum

    Abusus non tollit usum

    Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
    James Thurber

  4. #4
    VBAX Contributor
    Joined
    Apr 2006
    Posts
    144
    Location
    Brilliant. Thanks XLD for the handy tip.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •