dynamic file name

  1. U

    Dynamic File Reference in VBA not working

    Hi all, Can't work out why the file reference below (myFile = "C:\Users\WP\Documents\" & Range("A1").Value & ".txt") results in Excel constantly freezing. The file exists and the myFile string is correct... Any ideas? Function BarStringInfo() As String Dim myFile As String Dim text As...
  2. D

    VBA Code - VLOOKUP Formula with Dynamic Filename

    I hope my favorite community can help me with a VBA problem that has been stumping me. I have a VBA macro where I want to insert a VLOOKUP formula into a cell. Sounds easy right? However, the workbook I am going to perform the lookup on is different that the one where the macro resides and I...
  3. D

    Dynamic file name and loop question

    Hey guys, I'm trying to use the following code to open a file path name that changes based on month and year, and loops until it has completed the process for 12 months. One row per a month. Right now, the following code doesn't loop, and I receive a "Compile error: Variable not defined"...
  4. D

    #Struggling Variable file name & Loop

    Hey, I'm trying to edit the following VBA code so that the file I open becomes variable: Sub ReinvestmentIncome_Check() Dim wb As Workbook Dim Lmonth As Date Dim Smonth As Date Dim Yr As Date Dim Syr As Date Lmonth = ActiveSheet.Range(A2).Value Smonth = ActiveSheet.Range(B2).Value Yr =...
  5. S

    Search dynamic File Name and pull data from multiple sheets, same cell, into one master sheet

    Search dynamic File Name and pull data from multiple sheets, same cell, into one master sheet I have a user group of approx 100 people that is required to fill out time sheets weekly. The have to submit their timesheets in with a specific naming nominclature in a network folder. I want to...
  6. N

    combo box reference external dynamic range

    Hi, I have a 3 column list 'master.xls'. In another WB I have a "report" worksheet that I want to reference the master wb. So, a user will want to select from a list an option found in the master. Then, dependant on what is slected from the first list will be given a choice from a second...

This Week's Hot Topics

  • separating multiple Proper names (uppercase letters) from a list
    I have a list of proper names that only has spaces between their first and last names. I need a formula that can separate these names into...
  • 'for' Loop
    Hello guys, I am trying to do something new. With the help of a VBA code, in every case, last 2 Values of last 2 cells of columns D-15 to D-28 to...
  • Open specific pdf in folder with vba
    Hi, Below is the code in use , unable to find rich icon to put code inside using a mobile. The code in use is shown below. Everything works as it...
  • What is wrong with this For Loop code?
    I am trying to loop through each cell in Column U from U4 to last row to check if the percentage in the cell is greater than -.050%. In a...
  • Data to match
    Hi there, I have created 2 worksheets with data. First is all materials used and second has the bottle type used for each of material. How can I...
  • Shifting Columns
    Hi Dear Community, I'm trying to find the best way to Shift (Cut - Paste) all the information below and to the right of the "Worker" cell in VBA...

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
Top