如何在终端shell中显示Excel的值下拉列表?

时间:2016-09-15 18:41:55

标签: python excel

我目前有一个脚本,它通过python将用户输入值放入Excel工作表中,然后将该工作表的副本复制到一个新文件中。在原始的Excel工作表中,我尝试填充的一个值包含Excel的值下拉列表。我想在终端shell中向用户显示这个值的下拉列表,然后让用户选择一个。

当前代码:

policy_master = raw_input('Which master does this Standard reference? (Please '
                          'choose from one of the following below:')

print "Script now starting"

new_file = standard_name + ".xlsx"

data_input = (("Planning", "phase"), (standard_name,"Version_Name"),
              (version,"Version"), (policy_owner, "Policy_Document Owner"),
              ("IT Risk Leaders", "Approval_Body"),
              (project_manager, "Project_Manager"), ("001", "Version_History"),
              ("Standard", "Document_Type"), ("IT_Governance", "Trigger"),
              (policy_master, "Policy_Document_Master_Reference"))

filename = "PLD_Master_Template"
sheet_name= "Policy Document Version"

下拉值列表:

List of dropdown values

0 个答案:

没有答案