LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 44
Default can't transfer to worksheet

I have the following code that inputs a specified number of textboxes
based on the users input in another textbox. I am having trouble
passing info from the created textboxes to a worksheet. When I try to
run the code it comes up with object required. I tried the code with
a textbox that is put there at design time and it works fine. Please
help me.

'code to create boxes
sub
For i = 1 To txtQty.Value Step 1

With Me.Controls.Add("Forms.textbox.1")
.Top = 115 + (17 * i)
.Left = 20
.Height = 17
.Width = 50
.Name = "txtNum" & i
End With
Next i
end sub

'code to transfer data
Private Sub CommandButton1_Click()

ActiveSheet.Range("a1") = txtNum1.Value
End Sub

 
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
Find and TRansfer from another Tab in same Worksheet davie670 Excel Discussion (Misc queries) 3 March 13th 10 01:33 PM
Transfer entities from rows/column of one worksheet to another worksheet Thulasiram[_2_] Excel Programming 0 July 26th 06 11:30 PM
Transfer data from one worksheet to another CheriT63 Excel Programming 1 April 5th 06 03:17 AM
Transfer "Tabs name" to a worksheet tunabread Excel Discussion (Misc queries) 4 September 11th 05 06:33 PM
transfer one worksheet to another worksheet without losing format. TwiztidKitten Excel Worksheet Functions 1 August 18th 05 09:49 PM


All times are GMT +1. The time now is 08:33 PM.

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"