Results 1 to 3 of 3
  1. #1
    4 Star Lounger
    Join Date
    Sep 2002
    Location
    Stafford, Staffordshire, England
    Posts
    585
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Reference A Selected Range In Code (xp)

    I'm sure this is very simple and I'm sure I've done this before but it eludes me for the moment. The user needs to select a range on a worksheet and at the press of a command button change the cell values to "N".
    TIA.
    <font color=blue><font face="Script MT Bold"><big>Rob</big></font face=script></font color=blue>

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: Reference A Selected Range In Code (xp)

    You can use the following instruction in the macro run by the command button:

    Selection.Value = "No"

    or even

    Selection = "No"

  3. #3
    4 Star Lounger
    Join Date
    Sep 2002
    Location
    Stafford, Staffordshire, England
    Posts
    585
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Reference A Selected Range In Code (xp)

    Thanks Hans. <img src=/S/stupidme.gif border=0 alt=stupidme width=30 height=30>
    <font color=blue><font face="Script MT Bold"><big>Rob</big></font face=script></font color=blue>

Posting Permissions

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