Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Sending text from a Text box to a sheet

I have a form with a text box and a command button on it. I have
a button on the worksheet that makes this form pop up. I want to b
able to type text into the box and send it (by hitting the comman
button) to a different sheet in the same workbook and place it in
specific cell.

If someone could help me with this that would be great.

Thanks
Morr

--
Message posted from http://www.ExcelForum.com

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7,247
Default Sending text from a Text box to a sheet

Morry,

In the Click event of the command button, use code like

Worksheets("Sheet2").Range("A1").Value = _
Me.TextBox1.Text


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com


"morry " wrote in message
...
I have a form with a text box and a command button on it. I

have
a button on the worksheet that makes this form pop up. I want

to be
able to type text into the box and send it (by hitting the

command
button) to a different sheet in the same workbook and place it

in a
specific cell.

If someone could help me with this that would be great.

Thanks
Morry


---
Message posted from http://www.ExcelForum.com/



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Sending text from a Text box to a sheet

Thanks Chip that works.
But now I'm having trouble hiding the form. The code I put in is:
Form.hide

but it tells me: Must close or hide topmost modal form first
I only have one form and the only code in it is the code you gave me.
I have a button on Sheet1 that has the code: Form.Show but i don't kno
what it wants me to close.

Any Suggestion?

Thank you
Morr

--
Message posted from http://www.ExcelForum.com

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6
Default Sending text from a Text box to a sheet

morry wrote in message ...
Thanks Chip that works.
But now I'm having trouble hiding the form. The code I put in is:
Form.hide

but it tells me: Must close or hide topmost modal form first
I only have one form and the only code in it is the code you gave me.
I have a button on Sheet1 that has the code: Form.Show but i don't know
what it wants me to close.

Any Suggestion?

Thank you
Morry


---
Message posted from http://www.ExcelForum.com/


Try using the command Unload Userform1 instead of Form.hide

HTH
Charles
  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Sending text from a Text box to a sheet

Try using

Me.hide

if the instruction is in the code associated with the userform.

--
Regards,
Tom Ogilvy

morry wrote in message
...
Thanks Chip that works.
But now I'm having trouble hiding the form. The code I put in is:
Form.hide

but it tells me: Must close or hide topmost modal form first
I only have one form and the only code in it is the code you gave me.
I have a button on Sheet1 that has the code: Form.Show but i don't know
what it wants me to close.

Any Suggestion?

Thank you
Morry


---
Message posted from http://www.ExcelForum.com/



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
How do I preserve font/size when sending text to a different cell Robert Excel Worksheet Functions 1 May 28th 10 02:18 AM
maintaining text rotation sending sheet to email recipient RayK Excel Worksheet Functions 0 January 13th 09 09:01 PM
Sending Text Messages with Excel??? sh0t2bts Excel Worksheet Functions 0 November 4th 04 10:35 PM
Sending Mail from Excel: Body Text Kathryn Excel Programming 3 December 1st 03 07:56 PM
VBA code for sending cells B6:J10 to text file. lothario[_9_] Excel Programming 6 October 14th 03 09:08 PM


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