Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 29
Default User form to comments

I have one that's way out of my league:

I would like to first make a user form that activates when shortcut (ctrl+x)
is used on a cell. This would then allow the user to fill in the data for
name, CC#, Exp date, the date the data was entered, phone #, TOA (time and
date), # of days.

So here's the hitch, I need the userform to then enter the data into
comments for the cell that the shortcut key was used on. So in the end the
cell has the info of the userform in comments and the user can view the data
by resting the mouse over the comments red indicator.

Is this possible??

Thanks to all in advance for any help in the matter!


--
EW - Analyst
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default User form to comments

Here is information on userforms:

http://j-walk.com/ss/excel/tips/tip84.htm

See this tutorial here
http://www.dicks-blog.com/excel/2004...g_userfor.html

XL97: How to Use a UserForm for Entering Data (Q161514)
http://support.microsoft.com/?id=161514

XL2000: How to Use a UserForm for Entering Data (Q213749)
http://support.microsoft.com/?id=213749


Here are some other sources of information:

http://www.microsoft.com/ExcelDev/Articles/sxs11pt1.htm
Lesson 11: Creating a Custom Form
Excerpted from Microsoft® Excel 97 Visual Basic® Step by Step.


http://support.microsoft.com/?id=168067
File Title: Microsoft(R) Visual Basic(R) for Applications Examples for
Controlling UserForms in Microsoft Excel 97
File Name: WE1163.EXE
File Size: 161742 bytes
File Date: 05/08/97
Keywords: kbfile
Description: This Application Note is an introduction to manipulating
UserForms in Microsoft Excel 97. It includes examples and Microsoft Visual
Basic for Applications macros that show you how to take advantage of the
capabilities of UserForms and use each of the ActiveX controls that are
available for UserForms

Peter Aiken Articles:
Part I
http://msdn.microsoft.com/library/en...FormsPartI.asp
Part II
http://msdn.microsoft.com/library/en...ormsPartII.asp


you can assign a shortcut key by running a macro that executes the OnKey
command. See Excel VBA help.

You can see how to update/create a comment by turning on the macro recorder
and creating the comment manually one time. Then turn off the macro recorder
and look at the code. .

ActiveCell can be used to determine what cell was selected when you did
Ctrl+g

--
Regards,
Tom Ogilvy


"ewagz" wrote in message
...
I have one that's way out of my league:

I would like to first make a user form that activates when shortcut
(ctrl+x)
is used on a cell. This would then allow the user to fill in the data for
name, CC#, Exp date, the date the data was entered, phone #, TOA (time and
date), # of days.

So here's the hitch, I need the userform to then enter the data into
comments for the cell that the shortcut key was used on. So in the end
the
cell has the info of the userform in comments and the user can view the
data
by resting the mouse over the comments red indicator.

Is this possible??

Thanks to all in advance for any help in the matter!


--
EW - Analyst



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,494
Default User form to comments

test this in a blank worksheet with a userforn that has 4 textboxes and 1
commandbutton: you can assign a macro that uses control -x to show the form
(userform.show)

Option Explicit

Private Sub CommandButton1_Click()
Dim cmt As String, i As Long
For i = 1 To 4
cmt = Me.Controls("textbox" & i).Value & " " & cmt

Next
ActiveCell.AddComment cmt
End Sub


--


Gary


"ewagz" wrote in message
...
I have one that's way out of my league:

I would like to first make a user form that activates when shortcut (ctrl+x)
is used on a cell. This would then allow the user to fill in the data for
name, CC#, Exp date, the date the data was entered, phone #, TOA (time and
date), # of days.

So here's the hitch, I need the userform to then enter the data into
comments for the cell that the shortcut key was used on. So in the end the
cell has the info of the userform in comments and the user can view the data
by resting the mouse over the comments red indicator.

Is this possible??

Thanks to all in advance for any help in the matter!


--
EW - Analyst



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 fill a cell in a user form from a selection on same form? Terry Tipsy Excel Discussion (Misc queries) 4 June 11th 07 02:59 PM
Preventing a user name in comments Gabriel Excel Discussion (Misc queries) 1 January 15th 06 11:10 AM
How to: User Form to assign a user defined range to a macro variab TrevTrav Excel Programming 1 March 22nd 05 07:57 PM
I am looking to see if anybody has an equivalant user form to Outlooks CONTACT form BruceJ[_2_] Excel Programming 2 October 15th 03 05:28 PM


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