Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Re-Populate User Forms


Hi,

I'm using a user form for users to select data, then once finished its
populated on an excel spreadsheet, i have no problems with part, but my
question is if the users need to change any part of the historical data,
which is assigned a task number how do i repopulate the user form with
that particular task information? Once they are happy the data is
re-applied to the same row?

Any help would be appreciated..


--
Sam2
------------------------------------------------------------------------
Sam2's Profile: http://www.excelforum.com/member.php...o&userid=32899
View this thread: http://www.excelforum.com/showthread...hreadid=527131

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4,339
Default Re-Populate User Forms

Use MATCH:

Dim res as variant

res=Application.match(<TaskiD,<ListTaskIDs,0)
If iserror(res) then
Msgbox <Taskid & "not found"
else
' get data
res=<row number
textbox1.value=worksheets("Data").cells(res,"C")
....
.....
end if

Where
<Taskid is task id to match on
<ListTaskIds is list of task iDs e.g. named range (starting at row 1
...A1:A200 so res returns correct row number)

HTh

"Sam2" wrote:


Hi,

I'm using a user form for users to select data, then once finished its
populated on an excel spreadsheet, i have no problems with part, but my
question is if the users need to change any part of the historical data,
which is assigned a task number how do i repopulate the user form with
that particular task information? Once they are happy the data is
re-applied to the same row?

Any help would be appreciated..


--
Sam2
------------------------------------------------------------------------
Sam2's Profile: http://www.excelforum.com/member.php...o&userid=32899
View this thread: http://www.excelforum.com/showthread...hreadid=527131


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
Forms that Populate Excel Worksheet? an Excel Discussion (Misc queries) 1 December 20th 08 08:50 PM
Automatically populate forms excel_expert_wannabe Excel Worksheet Functions 1 June 10th 08 11:16 AM
User Name Automatically Populate nabanco Excel Worksheet Functions 7 October 29th 07 04:41 PM
create a userform to populate a diagram with the forms info Mic Excel Discussion (Misc queries) 0 July 22nd 05 08:07 PM
User forms Candee[_2_] Excel Programming 2 September 12th 03 03:11 PM


All times are GMT +1. The time now is 03:58 PM.

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"