Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 175
Default Adding a Next Record button to UserForm

After looking at the example for FindNext in VBA Help, I'm thinking I
should find a way to have the macro 1st find each PO on the list, based
on the user's request in the 1st userform.

This is what I have in the userform code , for when the user gives the
PO he wants to find.

Private Sub TextBox1_Change()

FindPOVal = TextBox1.Value
End Sub

I'm thinking that the macro needs to then go through the list, and give
a variable name to each of the records with that PO# found. Would that
work? Would the variable names given to each record be distinct to each
other, even though the PO numbers will be exactly the same? That is,
PO# 112 on line 10 on the list given variable name A
PO# 112 on line 20 on the list given variable name B
Would any code that references variable B cause it to only look at the
PO on line 20? And, not the same PO# on line 10? OR, would the
variable be given to the whole line for each record?
Thanks,
J.O.

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
Looping procedure calls userform; how to exit loop (via userform button)? KR Excel Programming 6 July 27th 05 12:57 PM
VBA: Pull Record Into UserForm Mcasteel[_10_] Excel Programming 2 October 26th 04 11:03 PM
VBA: Pull Record Into UserForm Mcasteel[_7_] Excel Programming 2 October 26th 04 06:27 PM
VBA: Pull Record Into UserForm Mcasteel[_9_] Excel Programming 0 October 26th 04 06:00 PM
Adding browse button to userform Brad[_11_] Excel Programming 1 December 1st 03 04:04 PM


All times are GMT +1. The time now is 08:56 AM.

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

About Us

"It's about Microsoft Excel"