+ Reply to Thread
Results 1 to 9 of 9

Cmd Next/Previous button on Userform

  1. #1
    Registered User
    Join Date
    11-20-2008
    Location
    England
    MS-Off Ver
    2007
    Posts
    65

    Cmd Next/Previous button on Userform

    Hi all,

    I've inherited the attached spreadsheet (It is an example spreadsheet) that uses userforms to add data and view records.

    What i am trying to do, without much luck, is to add cmd buttons to view the next or previous record on the userform.

    I have tried to use code from trawling the internet but as my VB is limited i am having
    problems making it work.

    Can anyone please help?

    Thanks Luke
    Attached Files Attached Files
    Last edited by luke_p; 07-01-2010 at 04:45 AM.

  2. #2
    Registered User
    Join Date
    11-20-2008
    Location
    England
    MS-Off Ver
    2007
    Posts
    65

    Re: Cmd Next/Previous button on Userform

    Here's the code i'm using at the moment

    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    11-20-2008
    Location
    England
    MS-Off Ver
    2007
    Posts
    65

    Re: Cmd Next/Previous button on Userform

    Can anyone please help me with this ?

  4. #4
    Forum Expert pike's Avatar
    Join Date
    12-11-2005
    Location
    Alstonville, Australia
    MS-Off Ver
    2016
    Posts
    5,342

    Re: Cmd Next/Previous button on Userform

    Hello luke_p,
    something like.....
    Please Login or Register  to view this content.
    If the solution helped please donate to RSPCA

    Site worth visiting: Rabbitohs

  5. #5
    Registered User
    Join Date
    11-20-2008
    Location
    England
    MS-Off Ver
    2007
    Posts
    65

    Re: Cmd Next/Previous button on Userform

    Many Thanks for the reply but got a error message

    Run-time error '1004'
    Method 'Range' of object '_Global' failed
    and it highlighted
    Please Login or Register  to view this content.
    what does it mean?

  6. #6
    Forum Expert pike's Avatar
    Join Date
    12-11-2005
    Location
    Alstonville, Australia
    MS-Off Ver
    2016
    Posts
    5,342

    Re: Cmd Next/Previous button on Userform

    Hi luke_p
    Try this

    Please Login or Register  to view this content.

  7. #7
    Registered User
    Join Date
    11-20-2008
    Location
    England
    MS-Off Ver
    2007
    Posts
    65

    Re: Cmd Next/Previous button on Userform

    Many many thanks for this and how would this differ for a

    "previous" button

  8. #8
    Forum Expert pike's Avatar
    Join Date
    12-11-2005
    Location
    Alstonville, Australia
    MS-Off Ver
    2016
    Posts
    5,342

    Re: Cmd Next/Previous button on Userform

    Hi Luke_P
    Try..
    Please Login or Register  to view this content.

  9. #9
    Registered User
    Join Date
    11-20-2008
    Location
    England
    MS-Off Ver
    2007
    Posts
    65

    Re: Cmd Next/Previous button on Userform

    Pike, thats superb.

    Many thanks again

+ 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