Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11
Default how do i create a pop up box to prompt the user for info?

I had created a program a few years ago in Excel, but can't remember how to
do it now. I had a button assigned to a macro, and when the user clicked the
button, a series of pop up boxes prompted the user for information. That
information was then used in the spreadsheet. Now I can't even remember how
to make the pop up boxes. Can anyone help please?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5
Default how do i create a pop up box to prompt the user for info?

Karyn,

An easy way to create a simple prompt is with the InputBox() function. Put
this into your button macro:

Cells(1,1) = InputBox("Type in something", "My Title")

See help for InputBox() for more options available for the function.

If you want fancier input boxes, you would create User Forms in the Visual
Basic Editor, which gets a bit more complex.

Lee

"Karyn" wrote in message
...
I had created a program a few years ago in Excel, but can't remember how

to
do it now. I had a button assigned to a macro, and when the user clicked

the
button, a series of pop up boxes prompted the user for information. That
information was then used in the spreadsheet. Now I can't even remember

how
to make the pop up boxes. Can anyone help please?



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11
Default how do i create a pop up box to prompt the user for info?

OK, that worked for the pop up box, thank you. But now, it's not putting the
input into that cell....
This wasn't the way I did it before, because I don't know much about
programming, but I do know some. But I'm up for doing it this way if I can
figure out how to work it, I'm stumped.

"Lee S" wrote:

Karyn,

An easy way to create a simple prompt is with the InputBox() function. Put
this into your button macro:

Cells(1,1) = InputBox("Type in something", "My Title")

See help for InputBox() for more options available for the function.

If you want fancier input boxes, you would create User Forms in the Visual
Basic Editor, which gets a bit more complex.

Lee

"Karyn" wrote in message
...
I had created a program a few years ago in Excel, but can't remember how

to
do it now. I had a button assigned to a macro, and when the user clicked

the
button, a series of pop up boxes prompted the user for information. That
information was then used in the spreadsheet. Now I can't even remember

how
to make the pop up boxes. Can anyone help please?




  #4   Report Post  
Posted to microsoft.public.excel.programming
Lee Lee is offline
external usenet poster
 
Posts: 6
Default how do i create a pop up box to prompt the user for info?

Karyn,

So, you say you get the prompt and you can type in a value, but the value
doesn't go into the cell?

Can you paste the macro code that runs when you click the button?

Lee


"Karyn" wrote in message
...
OK, that worked for the pop up box, thank you. But now, it's not putting

the
input into that cell....
This wasn't the way I did it before, because I don't know much about
programming, but I do know some. But I'm up for doing it this way if I

can
figure out how to work it, I'm stumped.

"Lee S" wrote:

Karyn,

An easy way to create a simple prompt is with the InputBox() function.

Put
this into your button macro:

Cells(1,1) = InputBox("Type in something", "My Title")

See help for InputBox() for more options available for the function.

If you want fancier input boxes, you would create User Forms in the

Visual
Basic Editor, which gets a bit more complex.

Lee

"Karyn" wrote in message
...
I had created a program a few years ago in Excel, but can't remember

how
to
do it now. I had a button assigned to a macro, and when the user

clicked
the
button, a series of pop up boxes prompted the user for information.

That
information was then used in the spreadsheet. Now I can't even

remember
how
to make the pop up boxes. Can anyone help please?






  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11
Default how do i create a pop up box to prompt the user for info?

OK, I figured all that out. Now I have a different problem.... I have a
table set up. The dates are all in column A, then in columns F and G, there
are number values. How do I get the sum of the number values for exact dates.

Example: If date = 3/5/05, then add #

Thank you for all your help Lee :)


"Lee" wrote:

Karyn,

So, you say you get the prompt and you can type in a value, but the value
doesn't go into the cell?

Can you paste the macro code that runs when you click the button?

Lee


"Karyn" wrote in message
...
OK, that worked for the pop up box, thank you. But now, it's not putting

the
input into that cell....
This wasn't the way I did it before, because I don't know much about
programming, but I do know some. But I'm up for doing it this way if I

can
figure out how to work it, I'm stumped.

"Lee S" wrote:

Karyn,

An easy way to create a simple prompt is with the InputBox() function.

Put
this into your button macro:

Cells(1,1) = InputBox("Type in something", "My Title")

See help for InputBox() for more options available for the function.

If you want fancier input boxes, you would create User Forms in the

Visual
Basic Editor, which gets a bit more complex.

Lee

"Karyn" wrote in message
...
I had created a program a few years ago in Excel, but can't remember

how
to
do it now. I had a button assigned to a macro, and when the user

clicked
the
button, a series of pop up boxes prompted the user for information.

That
information was then used in the spreadsheet. Now I can't even

remember
how
to make the pop up boxes. Can anyone help please?








  #6   Report Post  
Posted to microsoft.public.excel.programming
Lee Lee is offline
external usenet poster
 
Posts: 6
Default how do i create a pop up box to prompt the user for info?

Not sure what you are asking, but it sounds like you need the IF function:

=IF(A1="3/5/2005", A1+F1, A1+G1)

When A1 is 3/5/05, then
compute A1+F1
otherwise
compute A1+G1

If the computation returns a number, then format the cell as a date.

Lee


"Karyn" wrote in message
...
OK, I figured all that out. Now I have a different problem.... I have a
table set up. The dates are all in column A, then in columns F and G,

there
are number values. How do I get the sum of the number values for exact

dates.

Example: If date = 3/5/05, then add #

Thank you for all your help Lee :)


"Lee" wrote:

Karyn,

So, you say you get the prompt and you can type in a value, but the

value
doesn't go into the cell?

Can you paste the macro code that runs when you click the button?

Lee


"Karyn" wrote in message
...
OK, that worked for the pop up box, thank you. But now, it's not

putting
the
input into that cell....
This wasn't the way I did it before, because I don't know much about
programming, but I do know some. But I'm up for doing it this way if

I
can
figure out how to work it, I'm stumped.

"Lee S" wrote:

Karyn,

An easy way to create a simple prompt is with the InputBox()

function.
Put
this into your button macro:

Cells(1,1) = InputBox("Type in something", "My Title")

See help for InputBox() for more options available for the function.

If you want fancier input boxes, you would create User Forms in the

Visual
Basic Editor, which gets a bit more complex.

Lee

"Karyn" wrote in message
...
I had created a program a few years ago in Excel, but can't

remember
how
to
do it now. I had a button assigned to a macro, and when the user

clicked
the
button, a series of pop up boxes prompted the user for

information.
That
information was then used in the spreadsheet. Now I can't even

remember
how
to make the pop up boxes. Can anyone help please?








  #7   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default how do i create a pop up box to prompt the user for info?

=sumif(A:A,"3/5/05",F:F)

or for both columns

=SUMIF(A:A,"3/5/05",F:F)+SUMIF(A:A,"3/5/05",G:G)

--
Regards,
Tom Ogilvy


"Karyn" wrote in message
...
OK, I figured all that out. Now I have a different problem.... I have a
table set up. The dates are all in column A, then in columns F and G,

there
are number values. How do I get the sum of the number values for exact

dates.

Example: If date = 3/5/05, then add #

Thank you for all your help Lee :)


"Lee" wrote:

Karyn,

So, you say you get the prompt and you can type in a value, but the

value
doesn't go into the cell?

Can you paste the macro code that runs when you click the button?

Lee


"Karyn" wrote in message
...
OK, that worked for the pop up box, thank you. But now, it's not

putting
the
input into that cell....
This wasn't the way I did it before, because I don't know much about
programming, but I do know some. But I'm up for doing it this way if

I
can
figure out how to work it, I'm stumped.

"Lee S" wrote:

Karyn,

An easy way to create a simple prompt is with the InputBox()

function.
Put
this into your button macro:

Cells(1,1) = InputBox("Type in something", "My Title")

See help for InputBox() for more options available for the function.

If you want fancier input boxes, you would create User Forms in the

Visual
Basic Editor, which gets a bit more complex.

Lee

"Karyn" wrote in message
...
I had created a program a few years ago in Excel, but can't

remember
how
to
do it now. I had a button assigned to a macro, and when the user

clicked
the
button, a series of pop up boxes prompted the user for

information.
That
information was then used in the spreadsheet. Now I can't even

remember
how
to make the pop up boxes. Can anyone help please?








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
Prompt user for Customer Name to use info in Header Epoh Rio Excel Discussion (Misc queries) 4 September 14th 07 03:14 PM
Writing functions to prompt for info Conan Kelly Excel Worksheet Functions 1 December 28th 06 09:22 PM
save prompt for user exit, but no save prompt for batch import? lpj Excel Discussion (Misc queries) 1 February 25th 06 02:08 AM
Prompt user to create routing slip Kathy Excel Worksheet Functions 0 September 19th 05 03:56 PM
file prompt - more info larry hensel Excel Programming 0 February 3rd 04 05:02 PM


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