Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10
Default Multipage Control in a Userform

Hi

I have a Userform with a Multipage control on it with 2 pages setup. I
have several Textboxs on each page to be populated by a user. My
problem is i cannot get that infomation entered into the spreadsheet.

text1 on page 1

text2 on page 2

Thanks

Addy



Private Sub CommandButton1_Click()
'On Error GoTo ErrorHandler:

Dim text1 As String
Dim text2 As String

Dim material1 As Range
Dim material2 As Range

text1 = UserForm8.TextBox1.Value
text2 = UserForm8.TextBox2.Value

ActiveCell.Offset(0, 1).Select
Set material1 = Selection

ActiveCell.Offset(0, 1).Select
Set material2 = Selection

material1.Value = text21
material2.Value = text22

end sub
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 533
Default Multipage Control in a Userform

Private Sub CommandButton1_Click()
ActiveCell.Offset(0, 1).Value = UserForm8.TextBox1.Value
ActiveCell.Offset(0, 2)Value = UserForm8.TextBox2.Value
end sub

--
Jim
"Adam" wrote in message
...
| Hi
|
| I have a Userform with a Multipage control on it with 2 pages setup. I
| have several Textboxs on each page to be populated by a user. My
| problem is i cannot get that infomation entered into the spreadsheet.
|
| text1 on page 1
|
| text2 on page 2
|
| Thanks
|
| Addy
|
|
|
| Private Sub CommandButton1_Click()
| 'On Error GoTo ErrorHandler:
|
| Dim text1 As String
| Dim text2 As String
|
| Dim material1 As Range
| Dim material2 As Range
|
| text1 = UserForm8.TextBox1.Value
| text2 = UserForm8.TextBox2.Value
|
| ActiveCell.Offset(0, 1).Select
| Set material1 = Selection
|
| ActiveCell.Offset(0, 1).Select
| Set material2 = Selection
|
| material1.Value = text21
| material2.Value = text22
|
| 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
MultiPage control Patrick Simonds Excel Worksheet Functions 1 August 5th 06 05:32 PM
Looking for eloquent solution: Determine of any control on a page of multipage has been altered (userform) KR Excel Programming 0 December 13th 04 09:04 PM
Set Focus Problem for textbox control on multipage control ExcelDeveloperSPR Excel Programming 1 July 16th 04 08:54 PM
MultiPage Control Todd Huttenstine Excel Programming 7 May 13th 04 05:16 AM
Multipage control Neil Excel Programming 2 September 15th 03 01:24 PM


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