+ Reply to Thread
Results 1 to 5 of 5

Command button

  1. #1
    Registered User
    Join Date
    10-19-2008
    Location
    UK
    Posts
    63

    Command button

    Hi I created a macro where I highlight some cells in Sheet1 and then go back to Sheet2.

    Please Login or Register  to view this content.
    This macro works fine but when I put it inside a Command Button (see below) I get an error message saying "Run-time error'1004': Select method of Range class failed"

    Please Login or Register  to view this content.
    How should code inside Command Button look so that it works?

    Thanks,
    Nix


  2. #2
    Forum Guru
    Join Date
    08-26-2007
    Location
    London
    Posts
    4,606

    Re: Command button

    What do your other macros do?

  3. #3
    Registered User
    Join Date
    08-27-2006
    Posts
    14

    Re: Command button

    Why not go into the developer tab, click Insert, click the Button and assign the macro? Quick & dirty fix!!

  4. #4
    Registered User
    Join Date
    10-19-2008
    Location
    UK
    Posts
    63

    Re: Command button

    There is only one macro which is highlight one.

    Quick and dirty fix works.

    Nix

  5. #5
    Forum Expert romperstomper's Avatar
    Join Date
    08-13-2008
    Location
    East Sussex, UK
    MS-Off Ver
    365, varying versions/builds
    Posts
    21,284

    Re: Command button

    Please Login or Register  to view this content.
    Remember what the dormouse said
    Feed your head

+ 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