#1   Report Post  
bennyob
 
Posts: n/a
Default UserForms

What is the simplest code for delivering numerical data from a text box to a
specific location (no loops etc to find empty cells) in specific worksheets?
I want several data entries from the same form to go to different worksheets.
Any help will be greatly appreciated
Cheers Ben

  #2   Report Post  
Bob Phillips
 
Posts: n/a
Default UserForms

Worksheets("sheetname").Range("A1").Value = TextBox1.Text

etc.

--

HTH

RP
(remove nothere from the email address if mailing direct)


"bennyob" wrote in message
...
What is the simplest code for delivering numerical data from a text box to

a
specific location (no loops etc to find empty cells) in specific

worksheets?
I want several data entries from the same form to go to different

worksheets.
Any help will be greatly appreciated
Cheers Ben



  #3   Report Post  
bennyob
 
Posts: n/a
Default UserForms

Thanks Bob
one more quick one
How do I get it to put the same text box value into several sheets, the
Array function I cannot get to work?
Cheers Ben

"Bob Phillips" wrote:

Worksheets("sheetname").Range("A1").Value = TextBox1.Text

etc.

--

HTH

RP
(remove nothere from the email address if mailing direct)


"bennyob" wrote in message
...
What is the simplest code for delivering numerical data from a text box to

a
specific location (no loops etc to find empty cells) in specific

worksheets?
I want several data entries from the same form to go to different

worksheets.
Any help will be greatly appreciated
Cheers Ben




  #4   Report Post  
Bob Phillips
 
Posts: n/a
Default UserForms

I think you have to set them all individually.

--

HTH

RP
(remove nothere from the email address if mailing direct)


"bennyob" wrote in message
...
Thanks Bob
one more quick one
How do I get it to put the same text box value into several sheets, the
Array function I cannot get to work?
Cheers Ben

"Bob Phillips" wrote:

Worksheets("sheetname").Range("A1").Value = TextBox1.Text

etc.

--

HTH

RP
(remove nothere from the email address if mailing direct)


"bennyob" wrote in message
...
What is the simplest code for delivering numerical data from a text

box to
a
specific location (no loops etc to find empty cells) in specific

worksheets?
I want several data entries from the same form to go to different

worksheets.
Any help will be greatly appreciated
Cheers Ben






  #5   Report Post  
Dave Peterson
 
Posts: n/a
Default UserForms

dim myNames as Variant
dim iCtr as long
myNames = array("sheet1","sheet2","sheet99")

for ictr = lbound(mynames) to ubound(mynames)
worksheets(mynames(ictr)).range("a1").value = textbox1.text
next ictr

======
Depending on where/what that textbox is, you may want to qualify it, too.

worksheets("sheet77").TextBox1.Text
or
me.textbox1.text
???



bennyob wrote:

Thanks Bob
one more quick one
How do I get it to put the same text box value into several sheets, the
Array function I cannot get to work?
Cheers Ben

"Bob Phillips" wrote:

Worksheets("sheetname").Range("A1").Value = TextBox1.Text

etc.

--

HTH

RP
(remove nothere from the email address if mailing direct)


"bennyob" wrote in message
...
What is the simplest code for delivering numerical data from a text box to

a
specific location (no loops etc to find empty cells) in specific

worksheets?
I want several data entries from the same form to go to different

worksheets.
Any help will be greatly appreciated
Cheers Ben





--

Dave Peterson
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
Userforms in Excel 2003 created in Excel 2000 [email protected] Excel Discussion (Misc queries) 2 October 5th 05 12:31 PM
Creating UserForms Victor New Users to Excel 1 July 8th 05 07:57 PM
Help Userforms / Excel SUMIF Hopest Excel Worksheet Functions 4 June 3rd 05 05:38 PM
Open Userforms from a Dropdown list skid812pb Excel Discussion (Misc queries) 0 May 23rd 05 11:28 PM
Naming userforms Greg B Excel Discussion (Misc queries) 2 March 16th 05 01:31 PM


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