+ Reply to Thread
Results 1 to 3 of 3

Store border information in arrays

  1. #1
    Forum Contributor
    Join Date
    11-10-2009
    Location
    Perth, Australia
    MS-Off Ver
    Excel 2007
    Posts
    549

    Store border information in arrays

    I'm using this macro to store Border information in arrays.
    In this instance, at Page Breaks. Recording Line Style, Weight and Colour.
    It stores information as Long & Double.

    For some reason, when there is no border, the LineStyle is -4142, and the Weight is 2.

    Is there a reason for this?

    Edit: The Line Style enumerations can be found here:
    https://docs.microsoft.com/en-us/off...el.xllinestyle
    But the Weight should be zero.


    Snapshot.png

    Please Login or Register  to view this content.
    Attached Files Attached Files
    Last edited by Un-Do Re-Do; 09-18-2020 at 04:31 AM.

  2. #2
    Forum Expert rorya's Avatar
    Join Date
    08-13-2008
    Location
    East Sussex, UK
    MS-Off Ver
    365 Ent Monthly Channel / Insiders Beta
    Posts
    8,911

    Re: Store border information in arrays

    The xlBorderWeight enum has 4 values (xlThin, xlMedium, xlHairline and xlThick), none of which has the value 0. 2 is xlThin, which is the default.
    Rory

  3. #3
    Forum Contributor
    Join Date
    11-10-2009
    Location
    Perth, Australia
    MS-Off Ver
    Excel 2007
    Posts
    549

    Re: Store border information in arrays

    OK, thanks for clarifying.

+ 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. Store border details at Page Breaks, in array
    By Un-Do Re-Do in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-17-2020, 10:14 AM
  2. [SOLVED] VBA to store rows in different arrays based on cell values
    By AndersThyme in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 09-26-2019, 01:51 AM
  3. [SOLVED] Open text file and store specific columns using arrays
    By YasserKhalil in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 03-23-2017, 02:45 PM
  4. [SOLVED] Store multiple arrays in one array
    By YasserKhalil in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-12-2017, 01:31 AM
  5. [SOLVED] How to store variable data into an array - help on arrays
    By mandukes in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-15-2014, 09:24 AM
  6. VBA store references with arrays
    By fuatt in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-25-2013, 07:57 AM
  7. seprate and store string in arrays
    By ilyaskazi in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 06-29-2005, 10:22 AM

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