vba

  1. M

    MSXML2.XMLHTTP very slow windows 11

    The following code is fast in windows 10, but in windows 11 it can take up to a minute to receive stock data. Any ideas? LocalFilePath = folderPath & "/stockData.csv" Application.ScreenUpdating = False Set oReq = CreateObject("MSXML2.XMLHTTP") With oReq .Open...
  2. T

    VBA code wont open new version of Outlook!

    Hi All I have been using the below code to open Outlook and send off an email but since some of the users have updated their outlook, it doesn't work? Dim xOutlookObj As Object Dim xOutApp As Object Dim xOutMail As Object Dim xMailBody As String On Error Resume Next Set...
  3. M

    Updating Conditional formatting using VBA adds in conditions rather than replacing them

    I have a sheet where users will sometimes paste in elements. In doing so they can replace the conditional formatting in either nothing or some other formats. I have some VBA on a button designed to replace the formatting with the "correct" conditional formatting (see below). The issue I am...
  4. yearego021

    VBA to Save as PDF broken with unwanted deleting of tabs.

    I have a macro to save the workbook into pdf that is currently "running" but deleting a sheet that I do not want deleted. Here are the steps of the macro. 1. Make the necessary tabs visible. - Works 2. Unprotect workbook. - Works 3. Create a copy of a tab for each varation of a value in a drop...
  5. E

    VBA modelmeasures.add error 438

    Hello everyone, I am trying to add a new measures using VBA to my power pivot data model. Unfortunately I keep getting this run time error 438. I am using windows microsoft 365. Below you can find the whole code. I have colored red the part of the code that is giving me the previously mentioned...
  6. W

    VBA code for multiple columns

    The function is to put an 'X' on the row within that column when the keyword matches what is in column A. I have this working for column 'E' but I would like to apply it to columns F-K as well with the same function. Any suggestions are appreciated! Thank you in advance! Private Sub...
  7. M

    Selenium Element not corresponding to Click

    I have the following element that is the 4th element on a nav bar within a website: <a href="#step3" data-toggle="tab" data-bind="click: function(){ viewModel.GetRequiredDocuments(viewModel.xxxx); viewModel.xxxx(); }" aria-expanded="true">Documents</a> I am able to select the element. I...
  8. M

    How to create XML using VBA (Excel Macros) with readable result?

    Hi, i am never created my own VBA before. However, i needed to make XML file from my excel data. I want to have some condition such as ignoring empty row, ignoring character such as / - @ #. The VBA also only processing data from certain row until certain row dynamically with the last row is the...
  9. D

    Umwandler erweitern (doc. zu docx.)

    Hallo Zusammen, da unsere Firme leider noch sehr viele alte Worddateien im einsatz hat, welche aber oft nicht richtig Laden etc. Es funktioniert in Excel teoretisch genauso, weshalb ich hoffe ihr könnt mir helfen. habe folgendes Macro erstellt um doc. in docx. umzuwandeln. Dieses Macro...
  10. A

    VBA and Windows Scheduler

    Good day. I have a functional Excel knowledge; however, is very new to task automations. Essentially, I want to automate the following process using Windows Scheduler and Excel Macros: - Open Excel - Open PERSONAL.XLSB - Open latest file in the specified path - Run Macro called...
  11. V

    Disallowing user to change cell color

    Hello dear excel-lers, I have a workbook that helps me to record people's phone attendance on weekly basis. Each sheet is a list with names and timeslots. Users then are expected to choose from a drop-down menu 1 of 3 options (1-office, 2-home office, 3-formation). There is also a formula that...
  12. R

    VBA code to add current date when the sheet receive new update

    I have a worksheet that only receive updates from other sheet with filter formula, no manual entry at all occurs in this sheet and I need a code to add the current date Now() in cell "C3" as soon as the sheet receive any update from the source sheet .. I have a code but it insert the date based...
  13. G

    How to unzip the file from folder based on cell range

    Hello, I am trying to unzip a file for folder based on Cell Range. For Example Cell Range A1: have my file name (xyztestfile.zip). I am new to VbA and need help
  14. J

    Select cells in a worksheet, import to another worksheet, sort on criteria, and create and send a spreadsheet as an email attachment

    I have a workbook that I need to select rows that have cells numbered in one worksheet, import them into another worksheet, sort them based on a value in one column, The first worksheet can be 150 rows long and would look like the table below (with data in columns C through O too)...
  15. T

    VBA Assistance With Copying & Pasting

    Hello all, Need some assistance. BACKGROUND: Every month a New Customer Report generates and new customers get added to the bottom of the Excel sheet. I manipulate the report some and send out to staff. I want to automate this and what I am struggling with is the code top copy and paste NEW...
  16. R

    How to Define the row after Lastrow in VBA

    I simply need to change the font of a row after the table last row + 2rows for cells from ("A: M") but I don't know how to write that in VBA code ... I have a code to Addnewrow and I wrote the last section in the below code but unfortunately wrong any sugesstion please Sub Addnewrow() Dim...
  17. Z

    VBA: Get Spin Button Name

    Hello, I'm looking for a way to get the name of a Form Controls Spin Button on a Worksheet, not in a Form. I'm working on a macro that builds a calendar, and I'm having to delete the button manually each time I want to clear everything and test my code. I'm trying to avoid deleting all...
  18. L

    Getting Userform Command Buttons to Work with a BeforeSave VBA Macro

    I have created a userform with 3 buttons, "Save as .XLSM", "Save as .PDF" and "Cancel" What I would like is for this command box to pop up when we go to save the document (click on save as > browse) The buttons work just fine every time someone hits Save as .PDF. BUT, it will only work once...
  19. R

    The VBA code slows down the worksheet needs to be faster

    https://stackoverflow.com/questions/79338433/the-vba-code-slows-down-the-worksheet-needs-to-be-faster?noredirect=1#comment139908100_79338433
  20. M

    Create VBA Tools - Linked Word & Excel Files / MailMerge?

    In my line of work, virtually every company uses some combination and variation of VBA tools that essentially links Excel & Word documents to produce ±100 page report deliverables. Most of this is done through VBA tools either made by 3rd party technology solution providers, and some are...

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