Consulting

Results 1 to 4 of 4

Thread: Solved: Declare 2 Named Ranges for Cell Properties

  1. #1

    Solved: Declare 2 Named Ranges for Cell Properties

        With Range(Array("File_Name", "Site"))
            .Locked = True
            .NumberFormat = "@"
        End With
    what am i doing wrong ~???

  2. #2
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    [vba]

    With Union(Range("File_Name"), Range("Site"))
    .Locked = True
    .NumberFormat = "@"
    End With
    [/vba]
    ____________________________________________
    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

  3. #3

    thanks

    Set UnionRange = Union(Range("File_Name"), Range("Site"))
    With UnionRange
        .Locked = True
        .NumberFormat = "@"
    End With
    this is what i managed to write following the help guides , i guess i was nearly there.. go to get better at this

  4. #4

    thanks

    for the advice, really appreciated it.

Posting Permissions

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