Customize a parameter query - Microsoft Support (2024)

Excel for Microsoft 365 Excel 2021 Excel 2019 Excel 2016 More...Less

You can customize a Microsoft Query parameter query by changing the prompt, by using data from a cell as the prompt, or by using a constant.

For more information about creating parameter queries, see Use Microsoft Query to retrieve external data.

Note:The following procedures do not apply to queries created by using Power Query.

Newer versionsOffice 2016

Change the custom prompt for a parameter query

  1. On your worksheet, click a cell anywhere in the external data range that was created using the parameter query.

  2. On the Data tab, in the Queries & Connections group, click Properties.

  3. In the Properties dialog box, click Connection Properties Customize a parameter query - Microsoft Support (1).

  4. In the Connection Properties dialog box, click the Definition tab, and then click Parameters.

  5. In the Parameters dialog box, in the Parameter name list, click the parameter that you want to change.

  6. In the Prompt for value using the following string box, type the text that you want to use for the prompt, and then click OK. The custom prompt can contain up to 100 characters.

  7. To use the new custom prompt and refresh the data, click the arrow next to Refresh All on the Data tab, in the Queries & Connections group, and then click Refresh.

  8. In the Enter Parameter Value dialog box, the new prompt is displayed.

    Note:Optionally, to prevent being prompted again during each refresh operation, you can select the Use this value/reference for future refreshes check box. If you use data from a cell as the parameter value, select the Refresh automatically when cell value changes check box.

  1. On your worksheet, type the values that you want to use as criteria in the query.

  2. Click a cell anywhere in the external data range that was created with the query.

  3. On the Data tab, in the Queries & Connections group, click Properties.

  4. In the Properties dialog box, click Connection Properties Customize a parameter query - Microsoft Support (2).

  5. In the Connection Properties dialog box, click the Definition tab, and then click Parameters.

  6. In the Parameters dialog box, in the Parameter name list, click the parameter that you want to change.

  7. Click Get the value from the following cell.

  8. On the worksheet, click the cell that contains the value that you want to use.

    If you want to refresh the data whenever you change the value in the cell, select the Refresh automatically when cell value changes check box.

  9. Click OK.

  10. To refresh the data, click the arrow next to Refresh All on the Data tab, in the Queries & Connections group, and then click Refresh.

  1. On your worksheet, click a cell in the external data range that was created with the query.

  2. On the Data tab, in the Queries & Connections group, click Properties.

  3. In the Properties dialog box, click Connection Properties Customize a parameter query - Microsoft Support (3).

  4. In the Connection Properties dialog box, click the Definition tab, and then click Parameters.

  5. In the Parameters dialog box, in the Parameter name list, click the parameter that you want to change.

  6. Click Use the following value.

  7. Type the value that you want to use for the parameter, and then click OK.

  8. To refresh the data, click the arrow next to Refresh All on the Data tab, in the Queries & Connections group, and then click Refresh.

Change the custom prompt for a parameter query

  1. On your worksheet, click a cell anywhere in the external data range that was created with the parameter query.

  2. On the Data tab, in the Connections group, click Properties.

  3. In the Properties dialog box, click Connection Properties Customize a parameter query - Microsoft Support (4).

  4. In the Connection Properties dialog box, click the Definition tab, and then click Parameters.

  5. In the Parameters dialog box, in the Parameter name list, click the parameter that you want to change.

  6. In the Prompt for value using the following string box, type the text that you want to use for the prompt, and then click OK. The custom prompt can contain up to 100 characters.

  7. To use the new custom prompt and refresh the data, click the arrow next to Refresh All on the Data tab, in the Connections group. Then click Refresh.

  8. In the Enter Parameter Value dialog box, the new prompt is displayed.

    Note:Optionally, to prevent being prompted again during each refresh operation, you can select the Use this value/reference for future refreshes check box. If you use data from a cell as the parameter value, select the Refresh automatically when cell value changes check box.

Note:If you want to save your changes to the custom prompt, save the workbook. You can also edit the query to change the prompt. For more information about editing a Microsoft Query query, see Microsoft Query Help.

  1. On your worksheet, type the values that you want to use as criteria in the query.

  2. Click a cell anywhere in the external data range that was created with the parameter query.

  3. On the Data tab, in the Connections group, click Properties.

  4. In the Properties dialog box, click Connection Properties Customize a parameter query - Microsoft Support (5).

  5. In the Connection Properties dialog box, click the Definition tab, and then click Parameters.

  6. In the Parameters dialog box, in the Parameter name list, click the parameter that you want to change.

  7. Click Get the value from the following cell.

  8. On your worksheet, click the cell that contains the value that you want to use.

    If you want to refresh the data whenever you change the value in the cell, select the Refresh automatically when cell value changes check box.

  9. Click OK.

  10. To refresh the data, click the arrow next to Refresh All on the Data tab, in the Connections group, and then click Refresh.

  1. In Excel, click a cell in the external data range that was created with a parameter query.

  2. On the Data tab, in the Connections group, click Properties.

  3. In the Properties dialog box, click Connection Properties Customize a parameter query - Microsoft Support (6).

  4. In the Connection Properties dialog box, click the Definition tab, and then click Parameters.

  5. In the Parameters dialog box, in the Parameter name list, click the parameter that you want to change.

  6. Click Use the following value.

  7. Type the value that you want to use for the parameter, and then click OK.

  8. To refresh the data, click the arrow next to Refresh All on the Data tab, in the Connections group, and then click Refresh.

Need more help?

You can always ask an expert in the Excel Tech Communityor get support inCommunities.

Need more help?

Want more options?

Discover Community

Explore subscription benefits, browse training courses, learn how to secure your device, and more.

Customize a parameter query - Microsoft Support (7)

Microsoft 365 subscription benefits

Customize a parameter query - Microsoft Support (8)

Microsoft 365 training

Customize a parameter query - Microsoft Support (9)

Microsoft security

Customize a parameter query - Microsoft Support (10)

Accessibility center

Communities help you ask and answer questions, give feedback, and hear from experts with rich knowledge.

Customize a parameter query - Microsoft Support (11)

Ask the Microsoft Community

Customize a parameter query - Microsoft Support (12)

Microsoft Tech Community

Customize a parameter query - Microsoft Support (2024)
Top Articles
Qifu Technology (QFIN) Stock Price, News & Analysis
What Can Creditors Take In A Bankruptcy? | Bankrate.com
Katie Pavlich Bikini Photos
Gamevault Agent
Hocus Pocus Showtimes Near Harkins Theatres Yuma Palms 14
Free Atm For Emerald Card Near Me
Craigslist Mexico Cancun
Hendersonville (Tennessee) – Travel guide at Wikivoyage
Doby's Funeral Home Obituaries
Vardis Olive Garden (Georgioupolis, Kreta) ✈️ inkl. Flug buchen
Select Truck Greensboro
How To Cut Eelgrass Grounded
Pac Man Deviantart
Alexander Funeral Home Gallatin Obituaries
Craigslist In Flagstaff
Shasta County Most Wanted 2022
Energy Healing Conference Utah
Testberichte zu E-Bikes & Fahrrädern von PROPHETE.
Aaa Saugus Ma Appointment
Geometry Review Quiz 5 Answer Key
Walgreens Alma School And Dynamite
Bible Gateway passage: Revelation 3 - New Living Translation
Yisd Home Access Center
Home
Shadbase Get Out Of Jail
Gina Wilson Angle Addition Postulate
Celina Powell Lil Meech Video: A Controversial Encounter Shakes Social Media - Video Reddit Trend
Walmart Pharmacy Near Me Open
Dmv In Anoka
A Christmas Horse - Alison Senxation
Ou Football Brainiacs
Access a Shared Resource | Computing for Arts + Sciences
Pixel Combat Unblocked
Umn Biology
Cvs Sport Physicals
Mercedes W204 Belt Diagram
Rogold Extension
'Conan Exiles' 3.0 Guide: How To Unlock Spells And Sorcery
Teenbeautyfitness
Weekly Math Review Q4 3
Facebook Marketplace Marrero La
Nobodyhome.tv Reddit
Topos De Bolos Engraçados
Gregory (Five Nights at Freddy's)
Grand Valley State University Library Hours
Holzer Athena Portal
Hampton In And Suites Near Me
Stoughton Commuter Rail Schedule
Bedbathandbeyond Flemington Nj
Free Carnival-themed Google Slides & PowerPoint templates
Otter Bustr
Selly Medaline
Latest Posts
Article information

Author: Frankie Dare

Last Updated:

Views: 5608

Rating: 4.2 / 5 (73 voted)

Reviews: 80% of readers found this page helpful

Author information

Name: Frankie Dare

Birthday: 2000-01-27

Address: Suite 313 45115 Caridad Freeway, Port Barabaraville, MS 66713

Phone: +3769542039359

Job: Sales Manager

Hobby: Baton twirling, Stand-up comedy, Leather crafting, Rugby, tabletop games, Jigsaw puzzles, Air sports

Introduction: My name is Frankie Dare, I am a funny, beautiful, proud, fair, pleasant, cheerful, enthusiastic person who loves writing and wants to share my knowledge and understanding with you.