+ Reply to Thread
Results 1 to 3 of 3

help with stubborn code!!!

Hybrid View

  1. #1
    Registered User
    Join Date
    04-25-2007
    Posts
    38

    help with stubborn code!!!

    This works

    Sub Macro1()
    Application.CommandBars.FindControl(ID:=1849).Execute
    Application.SendKeys ("%t %h {DOWN} %n {ESC}")
    End Sub


    And this doesn't

    Private Sub CommandButton5_Click()
    Application.Dialogs(xlDialogValueFind).Show
    Application.SendKeys ("%t %h {DOWN} %n {ESC}")
    End Sub


    Any ideas would be gratefully received

  2. #2
    Valued Forum Contributor mudraker's Avatar
    Join Date
    11-10-2003
    Location
    Melbourne, Australia
    Posts
    3,983
    Please read forum rules - see links below

    You need to wrap your VBA code
    You need to post your thread in the correct forum - Programming
    You need to use a more suitable thread title

    If you do not understand the VBA code wrap instructions have a look at my last reply in this thread
    http://www.excelforum.com/showthread.php?t=583950

    Closing thread
    Please Read Forum Rules Before Posting
    Wrap VBA code by selecting the code and clicking the # icon or Read This
    How To Cross Post politely

    Top Excel links for beginners to Experts

    If you are pleased with a member's answer then use the Scales icon to rate it
    If my reply has assisted or failed to assist you I welcome your Feedback.

  3. #3
    Registered User
    Join Date
    04-25-2007
    Posts
    38
    Hi Mudraker

    I actually did look for the tags to wrap the code in but didn't see them (I'm used to the mrexcel.com forums) and that's also the reason for posting in the top forum.............I thought I was on mrexcel again. As for the subject, I wouldn't know how to express it any other way as I'm new to this and I was coming to the end of mt tether....

    Anyway that said I'll take up your suggestions, post in the correct forum and try and remember where I am in future...

+ 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