Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 21
Default updating spreadsheet from textbox

Hi,
I've created a userform that displays some employee info. Each sheet holds a
different companies employee list. I've used two combobox, the first,
lists company names, (also the sheet name), the second is the employee list
within the sheet. I've used the following code to populate the form.

Private Sub Cbitems_Change()
Dim appexcel As Excel.Application
Dim wks As Worksheet
Dim choice As String
choice = cbCompName.Value
Set wks = worksheets(choice)
Set appexcel = Application

TextBox1.Text = Application.VLookup(CbEmplist.Text, wks.Range("A7:N200"), 2,
True) ' information about the employee
TextBox2.Text = Application.VLookup(CbEmplist.Text, wks.Range("A7:N200"), 3,
True)
etc.
End sub

What I'd now like to do is after amending the details in the textboxes send
it back to its original position on the sheet. My problem is I don't know
how the reference the starting range, ie the employee name. Once I establish
that I was going to use OFFSET to add the other items of information.
Hope this makes sense.

Many thanks
David





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
Trendline Textbox Not Updating Phil Hageman Charts and Charting in Excel 5 September 27th 08 05:11 PM
textbox not updating when controlsource cell changes Christy Excel Programming 1 September 29th 04 02:39 AM
Textbox updating other Textboxes Thomas L[_2_] Excel Programming 1 July 7th 04 08:33 PM
Textbox to look at a cell in spreadsheet Sammy Excel Programming 1 January 28th 04 11:19 PM
Updating a textbox without erasing previous data nadir[_2_] Excel Programming 1 December 2nd 03 10:27 PM


All times are GMT +1. The time now is 06:15 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"