Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default easy question : textbox

Hello there...

I want to use a textbox to make people enter their info into m
worksheet. problem is : it been about 5 years since i last used vb AN
i never used it in excell.... thus the question :

How do you make a textbox in excell ?
How do you make it appear wenever someone clik in the right cell ?

thanks a lot

Ya

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

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default easy question : textbox

hehe sorry i might not have been all that clear (as you probabl
figured now im not all that good in english)

by text box i meant a box in wich the user can enter text... as i a
able to get msgbox but not "textbox"... cause i dont know what it cal
lo

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

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,885
Default easy question : textbox

Hi
use
inputbox
or
application.inputbox

--
Regards
Frank Kabel
Frankfurt, Germany


hehe sorry i might not have been all that clear (as you probably
figured now im not all that good in english)

by text box i meant a box in wich the user can enter text... as i am
able to get msgbox but not "textbox"... cause i dont know what it

call
lol


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


  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default easy question : textbox

InputBox

ans = InputBox("Please enter your name")

--
Regards,
Tom Ogilvy

"Yan Robidoux " wrote in
message ...
hehe sorry i might not have been all that clear (as you probably
figured now im not all that good in english)

by text box i meant a box in wich the user can enter text... as i am
able to get msgbox but not "textbox"... cause i dont know what it call
lol


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



  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default easy question : textbox

Got it.... now i can make it appear wenever i open or close
worksheet... but i would like to make it appear wenever i select
specific cell in the sheet... let say h3 ...

how can i do that ? there must be a way but my vb programming is so
far away.....

thanks for the previous answer and thank ahead for the next answer ;-)

PS: oh ! and tom you can post your answer only one time it enough :-
just kidding..... thank it was of great hel

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



  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,885
Default easy question : textbox

Hi
use the selection_change event (event procedures: see:
http://cpearson.com/excel/events.htm). In your case try:
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
Dim res
If Intersect(Target, Me.Range("B3")) Is Nothing Then Exit Sub
Application.EnableEvents = False
res = InputBox("Enter a value")
Target.Value = res
Application.EnableEvents = True
End Sub

Put this in your worksheet module (not in a standard module)


--
Regards
Frank Kabel
Frankfurt, Germany


Got it.... now i can make it appear wenever i open or close a
worksheet... but i would like to make it appear wenever i select a
specific cell in the sheet... let say h3 ...

how can i do that ? there must be a way but my vb programming is soo
far away.....

thanks for the previous answer and thank ahead for the next answer

;-)

PS: oh ! and tom you can post your answer only one time it enough :-)
just kidding..... thank it was of great help


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


  #7   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default easy question : textbox

ok thanks i will try that today...

--
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
Easy question (just not for me) Confusicous Excel Discussion (Misc queries) 2 January 4th 10 08:20 PM
REALLY easy question Thatgirl Excel Worksheet Functions 2 July 3rd 08 10:22 AM
Easy question M&M[_2_] Excel Discussion (Misc queries) 3 August 11th 07 07:00 AM
*EASY* question! Laura \( '_' \) New Users to Excel 3 November 25th 05 12:02 PM
new user with easy question? not easy for me speakeztruth New Users to Excel 5 June 3rd 05 09:40 PM


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