parameters

  1. J

    Macros

    Why does this macro not appear in my macro list? I'm aware that if it has "parameters" it won't appear but I don't what parameters are. If this is the reason, what parts of my code are parameters? Thanks Private Sub Button298_click() Dim i As Integer For i = 3 To 14 If...
  2. L

    Parameter in VBA

    I am trying to code parameters in excel VBA from an access query that has 2 date parameters. I have parameters in my code, but I still get an error code that says 2 parameters are expected. Sub UpdateForecast() Application.ScreenUpdating = False 'On Error Resume Next Dim MyDatabase As...
  3. J

    NEW: VBA import SSRS w/ param Into Excel

    Before I get into the issue I am experiencing, I think it should be said that my expertise in this matter is extremely lacking, so pretend that we're on /r/explainitlikeim5. I'll also note that I have tried to do some extensive research across multiple sites and forums, but nothing that really...
  4. U

    Future Date

    I have data that sometimes changes dates. if the customer wants a date in the future, I want the formula to look at the first date. If it is in the past, sum the information based on the parameters, if it is in the future, continue with the parameters. The current formula is...
  5. L

    Getting "Numeric Value Out of Range" Error when Trying to Change Conditions in Select Statement to use Parameters

    I am using the below Select statement, which works fine. However, when I change the values below in Red to ? as is done in the WHERE clause toward the end of the statement in order to use parameters defined in specific cells in a worksheet, I get a "Numeric Value Out of Range" error. I do not...
  6. Y

    [VBA] Saving to file and retrieving information from it through a key in the saved data

    I really don't know how to ask this question, but I'll try... I have a userform that has severl textboxes for a user to input parameters to calculate production output. Everything else is working perfectly so far, except the [Save] function. This is what I need: When a user clicks the [Save]...
  7. P

    VBA Error executing query with parameters

    I get this VBA error when I try to execute a query with 3 parameters "-2147217887: Multiple-step OLE DB operation generated errors" It runs fine from Access and I have run many queries in VBA without an issue. I don't believe I have previously seen this error so hopefully someone can...
  8. B

    Returning a value from a list of static with two parameters, one of which uses a range

    Hi, I’m trying to return a value from a large static table that includes a number of different parameters. <tbody> Feature 1 Min| Feature 1 Max| Feature 2 |Value 0.1 A 1 0.1 0.2 A 2 0.2 0.3 A 3 0.1 B 4 0.1 0.2 B 5 0.2 0.3 B 6 </tbody> Here’s an...
  9. N

    IF AND formula to work out value parameters

    Hi all, I have a formula that I can't seem to get to work... =IF(AND(Z833>=1,Z833<=14999),"£1-15,000", IF(AND(Z833>=15000,Z833<=49999),"£15,001-49,999", IF(Z833>=50000,"£50,000+"))) Does anyone know what I am doing wrong? Thanks!
  10. J

    Find a cell and highlight

    Hello All, I need to create a macro that takes three parameters (tab name, Row# and Col#) i have them in three different columns. Then based on those three parameters find the correct cell and highlights it in yellow...Anyone has an idea how to simply do this?... Thank you very much,
  11. K

    Variable Time/Datestamp in Data Query

    Hello all, this is my first post here. I have tried finding an answer to my particular problem and haven't been able to. This is a snippet of the data query I am trying to write: SELECT Source.Item1 Source.Submitted_date Source.From_ID FROM Database.Source WHERE...
  12. D

    Two Parameters for Lookup or Match

    Hi gang. I'm trying to pull from a tab in which Column A is a year, and Column B is a company name. How do I tell it to find the row corresponding to BOTH "IBM Inc" and "2017", and then return the value from the 10th column?
  13. K

    INDEX, MATCH, AVERAGE Formula

    Looking for some help I have a spreadsheet which has around 20K rows of data, Im looking for a formula that I enter 3 parameters into a search box and it will calculate the average of numbers it finds against the search parameters in column D, Column D could have up to 50 different numbers...
  14. R

    Pass Excel Cell parameters to PowerShell script

    I’m fairly new to Excel macros. I have an Excel 2016 form that I’ve created for some data entry. I want to be able to run a PowerShell script when a particular cell is selected. My issue is I can run a PowerShell script but I can’t figure out how to pass 2 parameters to the PowerShell script...
  15. deletedalien

    SQL connections?

    Can someone help with a question regarding an SQL connection to excel? im just trying to set 2 parameters (dates) in Excel cells and have the data in the query update accordingly Thanx
  16. H

    Web queries with parameters

    Hi, a few years back I built a sheet that would pull info from financial websites and had a parameter (the ticket symbol) set in a cell that when changed it would pull all the latest financial information down for that stock. However, with the Office 2016 web query format I can't figure out how...
  17. P

    Setting passed arguments directly to an array

    I'm trying to set passed arguments directly to an array for ease of use. As an example what I currently do is similar to: Sub Macro1(arg1 As String, arg2 As String, arg3 As String, arg4 As String)Dim args(1 to 4) as String args(1) = arg1 args(2) = arg2 args(3) = arg3 args(4) = arg4 for a = 1 to...
  18. M

    Paramaterized Power Query/PowerPivot data import problem

    Hi I have created a powerpivot report in Excel 2016 that imports data from several parameterized SQL Stored Procedures. The purpose it to allow individual users to only view relevant data; the model is quite data heavy so I want to limit the number of records at source. I have created 2...
  19. R

    Invalid Parameter Error for some users

    I am executing a Stored Procedure via a Workbook Connection. It allows for 3 parameters. I, along with a few others, can change the parameters and Refresh the file just fine. However, a couple of other people get the Invalid Parameter Number error when putting in the same parameters as me...
  20. W

    VBA for Warning on Button if Criteria in Another Cell is Not Within Defined Parameters

    Hello People, If cell A1 is not with pre-defined parameters, I would like code for a warning to pop up and cancel execution of the macro assigned to a format control button when clicked. Any takers? Thanks in advance .....

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top