Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 157
Default Using a button to scroll Up & Down a Database on a Userform

Hi Everyone
This macro takes me to the first entry on my database, i would like to be able
to scroll Up&Down with a button
Can anyone give me a macro to do that.
Any help would be very much appreciated.
Regards
John
Private Sub cmnbFirst_Click()
Dim FirstCl As Range
Set FirstCl = Range("a1").End(xlDown).Offset(1, 0)
With Me
.cmbAmend.Enabled = False
.cmbDelete.Enabled = False
.cmbAdd.Enabled = True
.TextBox1.Value = FirstCl.Value
.TextBox2.Value = FirstCl.Offset(0, 1).Value
.TextBox3.Value = FirstCl.Offset(0, 2).Value
.TextBox4.Value = FirstCl.Offset(0, 3).Value
.TextBox5.Value = FirstCl.Offset(0, 4).Value
End With
End Sub

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
userform text box and a scroll bar Shawn Excel Programming 4 August 17th 06 09:04 PM
Looping procedure calls userform; how to exit loop (via userform button)? KR Excel Programming 6 July 27th 05 12:57 PM
Can't scroll through database Doris Snow Excel Discussion (Misc queries) 6 December 28th 04 01:04 PM
Scroll Bars in TextBox on UserForm Fred Holmes Excel Programming 0 October 29th 04 12:42 PM
Userform and scroll bars KimberlyC Excel Programming 3 April 2nd 04 04:40 PM


All times are GMT +1. The time now is 07:12 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"