Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 23
Default Have macro force user to selecat a value

Part of my macro now has this line.

Range("D2").FormulaR1C1 = "CTR"

It enters the value "CTR" in a cell.

Now I need to modify it, so that it opens up a box in which the user can
select a value from a list of 3 options.

How do I do this?
What code do I need?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 267
Default Have macro force user to selecat a value

I would create a user form with a combo or list box with your options in it.
triger it with userform1.show and give it an "Apply" button to insert the
value and close the userform.

"Pluggie" wrote:

Part of my macro now has this line.

Range("D2").FormulaR1C1 = "CTR"

It enters the value "CTR" in a cell.

Now I need to modify it, so that it opens up a box in which the user can
select a value from a list of 3 options.

How do I do this?
What code do I need?

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 23
Default Have macro force user to selecat a value

Works like a charm. Thanks... I used two userforms already...

"Atishoo" wrote:

I would create a user form with a combo or list box with your options in it.
triger it with userform1.show and give it an "Apply" button to insert the
value and close the userform.

"Pluggie" wrote:

Part of my macro now has this line.

Range("D2").FormulaR1C1 = "CTR"

It enters the value "CTR" in a cell.

Now I need to modify it, so that it opens up a box in which the user can
select a value from a list of 3 options.

How do I do this?
What code do I need?

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 force user to enter their ID# before filling other data? Doc Pete Excel Programming 1 May 28th 09 07:15 PM
How to force user function to recalculate Alexander_Sagiyan Excel Programming 5 March 27th 08 12:14 PM
Force user to save file with specified filename jen Excel Programming 1 June 11th 06 01:45 AM
"Force" user to save file with specific name jen Excel Programming 1 June 11th 06 01:39 AM
How do I force a user to fill in all cells in excel before saving tomtomtomtomtom Excel Discussion (Misc queries) 1 August 16th 05 06:35 PM


All times are GMT +1. The time now is 10:05 AM.

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"