+ Reply to Thread
Results 1 to 4 of 4

Syntax for de-selecting a control?

  1. #1
    Registered User
    Join Date
    10-02-2003
    Location
    Rhode Island
    Posts
    63

    Question Syntax for de-selecting a control?

    Greetings,

    I figure this is a frequent question but I could not find a thread or site that gives me the answer so here goes ...

    I am using the follwoing code to disable a control:

    Sheets("WS_12").Shapes("Drop Down 4").Select
    With Selection
    .Enabled = False
    End With

    But I need to deselect it after, or not select it at all in the first place. Can someone suggest a way to disable this control and leave it unselected (without selecting something else)?

    Thanks in advance!

    Billy

  2. #2
    Jim Cone
    Guest

    Re: Syntax for de-selecting a control?

    Billy
    ,
    This ought to work...

    Sheets("WS_12").Shapes("Drop Down 4").Enabled = False

    Regards,
    Jim Cone
    San Francisco, USA


    "William DeLeo" <[email protected]>
    wrote in message news:[email protected]...
    >
    > Greetings,
    > I figure this is a frequent question but I could not find a thread or
    > site that gives me the answer so here goes ...
    > I am using the follwoing code to disable a control:
    >
    > Sheets("WS_12").Shapes("Drop Down 4").Select
    > With Selection
    > Enabled = False
    > End With
    > But I need to deselect it after, or not select it at all in the first
    > place. Can someone suggest a way to disable this control and leave it
    > unselected (without selecting something else)?
    > Thanks in advance!
    > Billy



  3. #3
    Registered User
    Join Date
    10-02-2003
    Location
    Rhode Island
    Posts
    63

    I tried it ...

    Hey Jim ... thanks for the reply.


    I tried that originally, and once again just now, and I get the follwoing error message:

    Runtime error "438"

    Object doesn't support this property or method.

    Are you sure that works?

    Billy

  4. #4
    Registered User
    Join Date
    10-02-2003
    Location
    Rhode Island
    Posts
    63

    bummer

    nobody has this answer?

+ 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