Microsoft Word Drop Down List
Hi,
I have a name list from master workbook. In microsoft word i want to create a drop down list which refer to the said master workbook, so anyone know how to get it by using VBA code?
Hi UnSothea,
Do you have a excel file with the list data and want load data to a drop down list control in the word?
If so, I suggest that you could refer to these steps below:
Using
CreateObject method to create a excel object.
Using
Open method to open your master workbook.
Read the data in workbook
Using
Combo Box control in word and add the data to this control.
Regards
Starain
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey.
Similar Messages
-
I am creating a drop down list using a combo box in the Developer tab. Once I protect my document I want the field to remain empty and not show any of the items on my drop down list. Is there a way to do this? Currently it shows one of the items on my list.
ThanksPaul's answer is correct.
Since this is a Word IT forum for Windows, in the future you should use the
answers.microsoft.com forum. It specializes in Word for the Mac. BTW - Paul stops by there also, so you'll still get his advice from there. :-)
Kind Regards, Rich ... http://greatcirclelearning.com -
Using this MacBook, I have created a Template in MS Word 2004, and want to create a drop-down list containing perhaps 30 choices. The drop-down list available in Form Fields has a limit of 25 choices. There is an article at http://support.microsoft.com/kb/198561 explaining how to create a bigger combo-box, but I notice that the instructions in that article cannot be followed to the letter, because the steps that it dictates for the Entry Macro and the Text Form-field do not appear in this version of Word; and I certainly cannot get the result to work in the template.
I dare say that I have made some mistake through inexperience, but might it be that the version of MS Word in the Mac-version will not permit me to do what I am trying to do ?Since this question is about a Microsoft product, you might have more luck getting suggestions if you ask in Microsoft's own forums.
Good luck. -
Can anyone tell me how i can make the text wrap in a drop down list? I need to have some fairly long questions in a human resources file that are longer than the text box so i need to text to wrap around.
Is this possible at all? It has to be a drop down list for the questions.
Thanks in advanceI would like to know how to do this also...
I am working on some files and manuals at work and right now I am manually editing them...
Changing the java script??? how & where..
Help !!!
Ida Fay
[email protected] -
When selecting a font for a message in Thunderbird, the only way I can find to see what the font looks like is to actually change the font of text I've already written. To try more than a few fonts at random would be a sheer waste of time.
I'm using an older version of MS Word, which has the option of allowing the user to see the actual fonts displayed in the font selection drop-down list.
Is there any way to set up Thunderbird to do this?The short answer is no.
-
Hi,
in my ssrs report i have two parameters, accounts and Manager ,there is a cascading between the accounts parameter and manager parameter, as per the cascading we will get managers names based on the account we selected in the accounts parameter,
my requirement is the first name in the mangers drop down list has to get selected as default value.
please help me with this, it is an urgent requirement.
Thanks in advance,
NaveenHi NaveenMSBI,
According to your description, you want to use cascading parameters in the report, if the accounts are selected when you preview the report, the first manager name will be selected from drop down list as the default value. If so, there can be two scenarios:
• If manager is single-valued parameter, we can get Available Values and Default Values from the same query as below. Then when the accounts are selected, the first manager name will be selected as default value.
SELECT managerName FROM table_name WHERE accounts IN (@accounts)
• If manager is multi-valued parameter, we need to use different query for Available Values and Default Values. In this case, please refer to Patrick’s solution.
For more information about Adding Cascading Parameters, please refer to the following document:
http://technet.microsoft.com/en-us/library/aa337498(v=sql.105).aspx
If you have any questions, please feel free to let me know.
Best Regards,
Wendy Fu -
Drop down list based on log in username - php mysql
I have a drop down list of client names on a php page that filters a second drop down list of site names.
At the moment, any user who logs in can see the entire list of clients, however I want to filter the list based on their username log in.
This is the entire page code, the section in bold is the drop down list in question:
<?php
if (!isset($_SESSION)) {
session_start();
$MM_authorizedUsers = "asguser,admin,member";
$MM_donotCheckaccess = "false";
// *** Restrict Access To Page: Grant or deny access to this page
function isAuthorized($strUsers, $strGroups, $UserName, $UserGroup) {
// For security, start by assuming the visitor is NOT authorized.
$isValid = False;
// When a visitor has logged into this site, the Session variable MM_Username set equal to their username.
// Therefore, we know that a user is NOT logged in if that Session variable is blank.
if (!empty($UserName)) {
// Besides being logged in, you may restrict access to only certain users based on an ID established when they login.
// Parse the strings into arrays.
$arrUsers = Explode(",", $strUsers);
$arrGroups = Explode(",", $strGroups);
if (in_array($UserName, $arrUsers)) {
$isValid = true;
// Or, you may restrict access to only certain users based on their username.
if (in_array($UserGroup, $arrGroups)) {
$isValid = true;
if (($strUsers == "") && false) {
$isValid = true;
return $isValid;
$MM_restrictGoTo = "accessdenied.html";
if (!((isset($_SESSION['MM_Username'])) && (isAuthorized("",$MM_authorizedUsers, $_SESSION['MM_Username'], $_SESSION['MM_UserGroup'])))) {
$MM_qsChar = "?";
$MM_referrer = $_SERVER['PHP_SELF'];
if (strpos($MM_restrictGoTo, "?")) $MM_qsChar = "&";
if (isset($_SERVER['QUERY_STRING']) && strlen($_SERVER['QUERY_STRING']) > 0)
$MM_referrer .= "?" . $_SERVER['QUERY_STRING'];
$MM_restrictGoTo = $MM_restrictGoTo. $MM_qsChar . "accesscheck=" . urlencode($MM_referrer);
header("Location: ". $MM_restrictGoTo);
exit;
?>
<html>
<body>
<script type="text/javascript">
function AjaxFunction(client_UID)
var httpxml;
try
// Firefox, Opera 8.0+, Safari
httpxml=new XMLHttpRequest();
catch (e)
// Internet Explorer
try
httpxml=new ActiveXObject("Msxml2.XMLHTTP");
catch (e)
try
httpxml=new ActiveXObject("Microsoft.XMLHTTP");
catch (e)
alert("Your browser does not support AJAX!");
return false;
function stateck()
if(httpxml.readyState==4)
var myarray=eval(httpxml.responseText);
// Before adding new we must remove previously loaded elements
for(j=document.testform.subcat.options.length-1;j>=0;j--)
document.testform.subcat.remove(j);
for (i=0;i<myarray.length;i++)
var optn = document.createElement("OPTION");
optn.text = myarray[i];
optn.value = myarray[i];
document.testform.subcat.options.add(optn);
var url="dd.php";
url=url+"?client_UID="+client_UID;
url=url+"&sid="+Math.random();
httpxml.onreadystatechange=stateck;
httpxml.open("GET",url,true);
httpxml.send(null);
</script>
<form name="testform" method='POST' action='mainck.php'>
Select first one
<select name=cat onChange="AjaxFunction(this.value);">
<option value=''>Select One</option>
<?
require "config.php";// connection to database
$q=mysql_query("SELECT DISTINCT * FROM qry_test GROUP BY client_name ASC");
while($n=mysql_fetch_array($q)){
echo "<option value=$n[client_UID]>$n[client_name]</option>";
?>
</select>
<select name=subcat>
</select><input type=submit value=submit>
</form>
</body>
</html>
I think I need to amend the sql statement to something like this - but I haven't quite got it right:
SELECT DISTINCT * FROM qry_test WHERE username = colname GROUP BY client_name ASC
Where do I drop the code for the colname info?
name:colname
type: text
default value: -1
run time value: $_SESSION['MM_Username']
Thanks!I don't do PHP but it would be something like:
$sql = sprintf (SELECT DISTINCT * FROM qry_test WHERE username = %s GROUP BY client_name ASC, $_SESSION['MM_Username'] );
or you can just embed the session variable into the sql string.
But why are you using the GROUP BY clause? If you just need a distinct list of names, use the DISTINCT keyword and reduce your select list to only the needed column. -
Pre-Populating Text fields from a Data drop down list using SQL Server
I'm currently trying to update some of our internal forms which are word based or a basic PDF form you fill in by yourself.
I'm connecting to our SQL server as there are databases stored there for an internal bit of software that hold information
I can use to fill in parts the form.
I have a data drop down list that is dynamically linked to the SQL databass and allows you to select a Project Number from that database, what
I want to do after this is selected is to automatically populate some text fields with the Project name, Account handler and other fields held in the
database.
I've had a look online to see if there is a solution but haven't really found anythig that is similar (although I am new to LC so may have seen it
and not realised) and my Java is non existant.
Has anyone tried this and able to point me in the right directions?
I'm using LiveCycle ES2 version 9.0.0.2 from Creative Suit 5.5 on Windows 7
CheersHi,
Actually this error does not cause any harm except a presentation inconvenience. In my multi-select prompt I am using variable expression with dynamic repository variable. Dashboard results are correct. Just variable's value does not appear on page (error Error Codes: G689FFB3:SDKE4UTF
Expression: @{biServer.variables['CUR_CAL_PER_MONTH_NAME']}). Pushing "GO" button on the prompt fixing the error but it's actually second execution of the dashboard.
Any ideas ?? -
RE: Using Drop-Down List in Express Application
The easiest way to do this is to define a domain for Gender that maps to
a droplist widget. ForteExpress will then automatically display the
widget in any ArrayWindow or FormWindow in which Gender appears. (I
don't think outlinefields support this widget.) There is a documented
customization for adding SQL to the domain to automatically fill it, but
we've found this to be a performance drag. What we usually do is cache
this type of list information on the client, usually by loading it into
arrays of listelement in a service object at user logon. The list is
then ready to go whenever a window needs it, and you can set the element
list of the droplist in PostOpenInit or wherever it seems appropriate.
From: David Wilbur[SMTP:[email protected]]
Sent: Wednesday, February 26, 1997 2:21 PM
To: [email protected]
Subject: Using Drop-Down List in Express Application
To: [email protected]
cc:
Subject: Using Drop-Down List in Express Application
On an Express generated Form window I want to use a drop-down list to
define the list of valid values for a database field. The underlying
database field could have a datatype of either integer or character.
For example, on the database we have a Gender column defined. I want to
use a drop-down list that displays descriptions of "Male" and "Female" for
allowed database values of "M" and "F". The Gender column is updateable on
the window.
Any suggestions on the best way to do this? Would we need to do anything
different on Array windows?
David Wilbur email: [email protected]
University of Windsor phone: 519-253-4232 ext. 2779
Windsor, Ontario CanadaHai Please try the following code
You have to make some changes according to your system i am using
MSSqlserver Driver change the class name and the connection string
for your need
<HTML>
<HEAD>
<%@ page language="java" import="java.sql.*"%>
<LINK href="../theme/Master.css" rel="stylesheet" type="text/css">
<TITLE>ListDrop.jsp</TITLE>
<%!Connection con;
%>
</HEAD>
<BODY>
<select>
<%
try {
Class.forName("com.microsoft.jdbc.sqlserver.SQLServerDriver");\\Here you specify the Class Nale
con = DriverManager
.getConnection(
"jdbc:microsoft:sqlserver://javaserver:1433;DatabaseName=karthi",
"sa", "sa");\\here Connection string
ResultSet rs;
Statement st = con.createStatement();
rs = st.executeQuery("select SerialNo,Food from Foods");
while (rs.next()) {
%>
<option value='<%= rs.getString("SerialNo") %>'><%= rs.getString("Food")%></option>
<%
} catch (Exception e) {
e.printStackTrace();
%>
</select>
</BODY>
</HTML> -
Drop Down list in BPC Input Schedule
Hi all,
In an input schedule I need to have some values "controlled", and allow to give a value only among a list of specific values. So I came up on the idea to builld it using cell "validation" feature of native Excel, just like I have been able to find in [this thread|Re: Regarding the Function.......] (by the way, great the hint about using name's ranges for being able to define the list in a different sheet than where it is being used).
So, I need to achieve one more thing. Let's say that the values I must include in the list are not numerical values, but alphanumerical, so I must combine in the schedule the alphanumerical value with the numerical value it represents. I have played around with excel and BPC formulas for quite a while already but cannot get it to work. Anybody has implented it?
Regards,
Rafael
PS: I get to define the drop down list of values in a cell and get it to write the corresponding numerical value in another cell referenced by a EvSND, but this only works in one direction (the cell does not get updated when I change the current view for example).Hi Rafael,
I've done something similar.
In one cell I've put a drop down list, using Excel's data validation. The members in the list are human-readable text values, so the user can select one of these descriptive values.
In a second cell, these text values are transcoded into numeric values, thanks to function VLOOLUP. This cell is in the data range of an EvDRE expansion area, so when the user saves data the numeric value gets written to the back-end.
In a 3rd cell I fetch the numeric value currently saved on the server, via an EvGET.
In a 4th cell, I transcode that value into the corresponding text value, using another VLOOKUP function.
Finally, I've used function AFTER_REFRESH to read the content of the 4th cell, and set the value of the drop-down cell to that value. The VBA instruction to do the latter thing is something similar to:
ActiveCell.FormulaR1C1 = <the value of the 4th cell>
This way, the drop-down entry selected by default after refreshing data is the value currently stored on the server.
However I still miss something. I've set the Excel validation only in the 1st cell of the 1st row, and I want that the EvDRE expansion copies the validation to all other cells in all rows resulting from expansion. But this does not happen! Validation is not copied during expasion.
How's that? Everything else is copied--values, formats, formulas. Why validation is not copied?
* UPDATE
I've solved this issue. The solution is described here:
http://scn.sap.com/thread/3209213
Rafael Moreno wrote:
Hi Ethan,
yes, you are right, with VLOOKUP you get the information I want, but only in ONE direction. By "one direction" I mean that I can get in the cell with the VLOOKUP the text I want by reading a (numerical) value from a different referenced cell. But I would also need to be able of changing value in that same cell (by picking up one of those text values from a drop down list) and having the corresponding numerical value written on the referenced cell. Can you see the difference?
In few words, I would need a cell to read and write a value (just as the raw EvSND allows), but converting the numerical value into its corresponding text value.
Regards,
Rafael
Message was edited by: Davide Cavallari -
Using Drop-Down List in Express Application
To: [email protected]
cc:
Subject: Using Drop-Down List in Express Application
On an Express generated Form window I want to use a drop-down list to
define the list of valid values for a database field. The underlying
database field could have a datatype of either integer or character.
For example, on the database we have a Gender column defined. I want to
use a drop-down list that displays descriptions of "Male" and "Female" for
allowed database values of "M" and "F". The Gender column is updateable on
the window.
Any suggestions on the best way to do this? Would we need to do anything
different on Array windows?
David Wilbur email: [email protected]
University of Windsor phone: 519-253-4232 ext. 2779
Windsor, Ontario Canada
-----------------------------------------------Hai Please try the following code
You have to make some changes according to your system i am using
MSSqlserver Driver change the class name and the connection string
for your need
<HTML>
<HEAD>
<%@ page language="java" import="java.sql.*"%>
<LINK href="../theme/Master.css" rel="stylesheet" type="text/css">
<TITLE>ListDrop.jsp</TITLE>
<%!Connection con;
%>
</HEAD>
<BODY>
<select>
<%
try {
Class.forName("com.microsoft.jdbc.sqlserver.SQLServerDriver");\\Here you specify the Class Nale
con = DriverManager
.getConnection(
"jdbc:microsoft:sqlserver://javaserver:1433;DatabaseName=karthi",
"sa", "sa");\\here Connection string
ResultSet rs;
Statement st = con.createStatement();
rs = st.executeQuery("select SerialNo,Food from Foods");
while (rs.next()) {
%>
<option value='<%= rs.getString("SerialNo") %>'><%= rs.getString("Food")%></option>
<%
} catch (Exception e) {
e.printStackTrace();
%>
</select>
</BODY>
</HTML> -
Creating a formula using a alphabetic drop down list?
I am creating a work sheet using formulas and drop down list. I have one drop down list that has a list of name and the second list is a list of letter that correspond to those names. (ex: column "J" on line "4 - 29" there is the letter
"A-Z" and then continues , in column "K" line "4" starts the list of names. In Cell B4 is the drop down list of names in column "K" to choose from, I would like the letter that corresponds to that name automatically
be put into cell A4, how do I create the formula in cell A4?Hi Tina,
According to your description, please following these steps:
With your sample as shown in the following figure, select range “J4:K29”, and click
FORMULAS-Defined Names-Create from Selection, and check
Right column.
Then, use the enter formula in A4 “=INDIRECT(B4)”.
And I upload a TEXT.xlsx file on OneDrive, you can download this file via this link:
https://microsoft-my.sharepoint.com/personal/v-lzng_microsoft_com/Documents/Shared with Everyone
Hope it’s helpful.
Regards,
Emi -
Drop Down List not getting populated
Dear All,
I have developed a form in SFP which containes a drop down list.The drop down list is to be populated by an internal table field.
Whenever I am executing the form i can see only the first item in the drop down listand nothing else.
While debugging i could see the almost 15 entries in the internal table.
I have mapped a field of this internal table to the drop down list.I am unable to figure out the problem....do let me know which type of drop down list should i use for this scenario....I even tried with java script...but nothing works for me...do let me know??
Waiting for t
Regards,
Geethi,
i guess you have bound the field but not the list elements of the field.
the content of the field (as result of the selection from the drop down list box) can be bound to a variable.
But if you want to display your internal table as entries in your drop down list box you have to do some dynamic data binding of the list elements.
to be able to do this, you first have to activate dynamic data binding in general. Use the way i proposed (--> extras from the toolbar!, options, data binding, dynamic). then the word "list elements" in the object palette of your dropdown list box will be green and you will be able to do some dynami data binding!
i recommend you this one:
--> http://www.adobe.com/devnet/livecycle/articles/strategies_creating_forms_lc_designer8/strategies_for_creating_form_designs_using_designer8.pdf
br
norbert -
UI - How to make Columns in a Drop Down List Selection?
I am altering a code from Peter Kahrel "Beginning Script UI". I am trying to make a searchable drop down list that will have 4 columns. So far, the search works and I have headings in the search, but I cannot seem to make the columns for the actual data. I believe I need to change the type_ahead since the array is looking at this data. I'm stuck in the water. Can someone tell me what I need to do to get the list to show up as columns? How do I turn the picked = type_ahead data into four columns? Code and Screenshot below:
picked = type_ahead (["bat", "bear", "beaver", "bee", "cat", "cats_and_dogs",
"dog", "maggot", "moose", "moth", "mouse"]);
function type_ahead (array)
var w = new Window ("dialog", "Quick select");
var entry = w.add ("edittext", [0, 0, 800, 22]);
entry.active = true;
var list = w.add ("listbox", [0, 0,800, 500], "",
{numberOfColumns: 4, showHeaders: true,
columnTitles: ["Non-Approved Word", "Approved Alternative", "Approved Use", "Non-Approved Use"], columnWidths: [200,200,200,200]});
list.selection = 0;
entry.onChanging = function ()
var temp = this.text;
list.removeAll ();
for (var i = 0; i < array.length; i++)
if (array[i].toLowerCase().indexOf (temp) == 0)
list.add ("item", array[i]);
if (list.items.length > 0)
list.selection = 0;
entry.onChange = function () {w.close (1)}
if (w.show () != 2)
return list.selection.text;
else
w.close ();Hi Peter,
This is one of those developments that push the limits of my knowledge-base and when things do that, I lose sleep until I figure it out. With that said :-) here is where I have ended up.
Basically I made a new array for the table data. I then use an array lookup to sort the array in the listbox based on the 0 array item. See the code below. Once it is loaded type in "b" and the list will start to sort.
I need to try to get this to work as a pallete instead of a dialog box. Do palletes support this type of functionality?
var newarray = new Array(
new Array('Butterfly ','has wings','can fly'),
new Array('bohemith moth','has wings','cannot fly very good'),
new Array('word 3','replacement word','use case'));
picked = type_ahead (newarray);
function type_ahead (array)
var w = new Window ("dialog", "STE Checker");
var entry = w.add ("edittext", [0, 0, 800, 22]);
entry.active = true;
var list = w.add ("listbox", [0, 0,800, 500], "",
{numberOfColumns: 3, showHeaders: true,
columnTitles: ["Column 1", "Column 2", "Column 3" ], columnWidths: [200,200,400]});
list.selection = 0;
entry.onChanging = function ()
var temp = this.text;
list.removeAll ();
for (var i = 0; i < array.length; i++)
if (array[i][0].toLowerCase().indexOf (temp) == 0)
with (list.add ("item", array[i][0]))
subItems[0].text = array[i][1];
subItems[1].text = array[i][2];
if (list.items.length > 0)
list.selection = 0;
entry.onChange = function () {}
if (w.show () != 2)
return list.selection.text;
else
w.close (); -
Firefox tab to fields and drop down lists with Mac OS X 10.5 (Leopard)
Has any one else noticed some problems after upgrading to OS X 10.5? It seems I can't tab to every field, such as the "Keep me signed in for today" checkbox on ebay's login page. I used to tab to it before upgrading. I'm also tabbing past some drop down lists where you select the state where you live in sign up pages. And before you suggest it, I have already turned on "All Controls" in System Preferences->Keyboard & Mouse. I don't think that affects Firefox anyway since it is a system controls option and doesn't affect the actions in a browser window.
Also, some drop down lists no longer drop down. I can focus on the list and even change the value using the up and down arrows, but the full list is no longer displayed. Again, this changed with the upgrade to Leopard.
If any one has experienced these specific issues or something similar please share your thoughts and solutions.
MarkI am also having the drop down problem on my macbook, it's getting really annoying. On top of that, twice today (i just got the macbook three days ago) my keyboard will just stop working- i cannot type in firefox nor in finder or word.
Maybe you are looking for
-
Access to a external time capsule through my home time capsule
How can I access my parents timecapsule through my own at home? I have no problems in accessing my own time capsule through for example the network at work (using Automator - and a quite old apple Airport/router). But if I'm at home, and on the home
-
hi friends, i want to make report on daily performance of plant in which there are different columns like 1. plan/ day, 2. monthly plan 3. days production
-
Hi ! WLS version: 5.1 with SP10 Server OS: NT4 Client distr.: Java WebStart Client OS: Windows 2000 I get the following exception when I try to create a T3 connection (tunnelled through HTTP) to my WLS server: java.security.AccessControlException: ac
-
i have problems with the battery of my iphone4s i have it sience february 17 of this year and i the time life of my battery i compare the lifetime of the battery of my iphone 4 with the iphone 4s and i look that the iphone 4 has long a long lifeime i
-
Problem installing Audio Drivers for Windows XP on G550
I have tried all the posibilities to install sound drivers for Win XP on G550, but every attempt a big failure . Could someone help me to install sound drivers? System gives error of Now Media Object.