Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() I'm not an expert in vba in excel, however I would like some help. I have a worksheet with a named range called "Data". And, also on the worksheet I have a command button that initiates a userform. On that userform I have TextBox1.Value and TextBox2.Value...after the OK button is clicked within the userform, it inserts the data from the userform in the last row of that named range. I have part of the code to that adds the data to the worksheet, but the named range area stays the same. How do I get this to work. This is what I have so far: Sheets("Sheet1").Range("A65536").End(xlUp)(2, 1).Value = TextBox1.Value Sheets("Sheet1").Range("A65536").End(xlUp)(1, 2).Value = TextBox2.Value Sheets("Sheet1").Range("A65536").End(xlUp)(1, 3).Value = TextBox3.Value Thanks in advance... -- sulrich ------------------------------------------------------------------------ sulrich's Profile: http://www.excelforum.com/member.php...o&userid=19975 View this thread: http://www.excelforum.com/showthread...hreadid=345553 |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Named Range Graph Data | Charts and Charting in Excel | |||
get data from a cell in each named range | Excel Worksheet Functions | |||
inserting a named range into new cells based on a named cell | Excel Discussion (Misc queries) | |||
Can I use named range in data range box when creating pie chart? | Charts and Charting in Excel | |||
Q: Best way to take data from VBA into graphs without writing data to worksheets? (Can a named range refer to an array in memory only?) | Excel Programming |