chr13

  1. F

    Open Folder - Cannot find folder

    Hi My code checks to see if a folder exists and creates one if it doesn't before going on to produced a dynamic number of PDF documents and save them in the folder. The Code works, but I decided to try and be clever and give the user the opportunity of opening the folder once all the PDFs had...
  2. C

    How to change the font name and size on the email message?

    Hi, I have got here a very simple macro that copies three values to a worksheet from a userform and then it opens a new email message and it pastes these values into the email message. The userform has 3 text boxes and 1 command button: TextBox1 TextBox2 TextBox3...
  3. S

    Vba code to replace with chr(13) with space for selected text in powerpoint

    Dear all, I am currently working on this code and I need to replace chr(13) with space for the selected text and not for the whole slide. The code below works well with all shapes in active presentation . The code is as follows : Sub Removepb() Dim otxR As TextRange Dim osld As Slide Dim...
  4. H

    Put result of ActiveWorkbook.Queries in Array instead of in a Worksheet

    I have a query: Bron = Excel.CurrentWorkbook(){[Name=""Finost_OI_1""]}[Content]," & Chr(13) & "" & Chr(10) & _ " #""Type gewijzigd"" = Table.TransformColumnTypes(Bron,{{""Date"", type date}, {""ArtNr"", type text}})," & Chr(13) & "" & Chr(10) & _ " #""Rijen gefilterd"" =...
  5. H

    Put result of ActiveWorkbook.Queries in Array instead of in a Worksheet

    I made a Querie: ActiveWorkbook.Queries.Add Name:="QueryTab", Formula:="let" & Chr(13) & "" & Chr(10) & _" Bron = Excel.CurrentWorkbook(){[Name=""Finost_OI_1""]}[Content]," & Chr(13) & "" & Chr(10) & _" #""Type gewijzigd"" = Table.TransformColumnTypes(Bron,{{""Date"", type date}...
  6. A

    Importing .csv with VBA

    I wrote some VBA to that adds a .csv file as a power query in Excel. The file location can change. I have some code that allows you to pick where the files are located, but I can't figure how to use that input to tell it where to look. Below is what I have for getting the file location...
  7. A

    Countif Statement Showing Incorrect Value

    With ws_data .Range("J:J").Clear For t = 2 To nwb_LastRow rn_1 = .Cells(t, 3) temp_fac = .Range("H" & t) & .Range("I" & t) If Application.WorksheetFunction.CountIf(ws_rd.Range("A:A"), rn_1) = 0 Then...
  8. K

    Macro Help

    Hi I am looking for some help if possible. I have a macro running that saves and closes a file 2 minutes after it has been opened. I was hoping that when the file saves that it would email the file to a user but this doesn't seem to be working In Modue1 I have Module1 Dim CloseTime As Date Sub...
  9. D

    Importing newest *.csv file into excel

    Good afternoon, I have this code from a recorded macro, that imports the specific file into the open worksheet. (highlighted path and file) Sub importnewfile() ActiveWorkbook.Queries.Add Name:="Derby_Station", _ Formula:= _ "let" & Chr(13) & "" & Chr(10) & " Source =...
  10. kjacw

    Different Language in Message Box

    Hello All, I am using Excel 2013 and I would like to know how to have my message box to pop up the value of a cell that has a different language. In cells C2 and others, for example I have a words in Greek. When I am entering in the words I change from English font to a Greek font and type the...
  11. Ironman

    Something in this code is causing my workbook to freeze...

    Hi I am 100% certain that something in the below code is causing my worksheet to hang when I double click on a cell or when I run a macro affecting this sheet - there are NO VBA errors. Unfortunately the code was written for me around 15 years ago, so I can't go back to the author to query it...
  12. B

    VBA File Directory Issue

    I need some help I am not sure why how to get this code to run I have tried a few different things, but I just want to be able to easily change the file directory via DIM Directory = "C:\DATA" FileName = "PRNT" & i & ".DAT" DirFile = Directory & FileName ActiveWorkbook.Queries.Add Name:="PRNT"...
  13. Trevor3007

    add additional info

    morning i currently use the code below, but i also want to include 'invoice-" & the text in "G1" Private Sub Worksheet_SelectionChange(ByVal Target As Excel.Range) Set Target = Range("a10") If Target = "" Then Exit Sub On Error GoTo Badname ActiveSheet.Name = "Invoice WC"...
  14. M

    API Help

    I have established an API question via Power Query and I am just mimic it through VBA. The JSON document that is returned has multiple drill downs that I need; however, I had to create a new connection each time to change the let statements. I think this is where my query is going really slow...
  15. R

    Change the background color of a textbox that is positioned in a chart

    Hi Guys, I have been chasing my tail on this one. I have a chart and I want to place a "label" on it using a textbox. I need to make the background of the textbox white and the text black. here is the code I have. Sub Sticker() With...
  16. R

    VBA Command text connecting to ms access

    Hi Im trying run the below code that is connected to a ms access database... if i run the code based on any criteria apart from date it seems to work, however every time I use date as a criteria it fails with error 1004 "Application-defined or object-defined error" CommandText = Array( _...
  17. J

    Trouble Scraping Data Table From Web

    Hi there, I had a macro that worked before but fails now because the Query Editor says that it's using Internet Explorer Compatibility Mode. I would prefer not having it download as a query table. In the old versions of excel, it was not as complicated as it is now. Any help would be super...
  18. puddleplasher

    QueryTable.Refresh error in recorded macro (1004 of course!)

    I have tried to make this as simple as possible to track this down, but Excel's macro recording just doesn't seem to be recording the right thing... I just can't figure out WHAT it's recording wrong. Simple macro steps: create new workbook, Data:From Text, select .txt file, when Query preview...
  19. J

    ActiveWorkbook.Queries.Add Filter Criteria

    Hello, I have a code in which i use ActiveWorkbook.Queries.Add to import a CSV file. But while importing i need to filter only those rows containing value given by user. Below is the code. I have Highlighted and Bold the portion where i give the filter criteria as [Object ID] = 140. But what i...
  20. H

    Import All Fields in a Power Query

    Hello All, How do I import every/all fields in my query? I need the equivalent of SELECT FROM * . Below is what I got: Sub CSVFiles() Dim MyFile As FileDialog Set MyFile = Application.FileDialog(msoFileDialogFilePicker) Dim StrFileName As String, strPath As String StrFileName =...

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