excel vba

  1. K

    I was make Print to PDF With Duplex page , its Work , But How to set (Top, bottom, Left, Right Margin) in this VBA code....

    I was make Print to PDF With Duplex page , its Work , But How to set (Top, bottom, Left, Right Margin) in this VBA code.... i was Create MODULE and put this VBA code , So Amazing Trick to ,make Print TO PDF with Duplex (Both-side),,,,, Kindly Provide set VBA code For both page Margin...
  2. M

    Help on a Old thread that I cant find a resolution to.

    I am on office 2019 and I have been trying to automate my emails to an excel sheet as part of a Ticket System, I know absolutely zero VBA and have just been trying to cobble something together off of some old posts. All the different vba code I have tried keeps creating a copy of my workbook...
  3. P

    Encountering Runtime Error When Entering Date in Textbox

    I have the following code that upon exit from Textbox87 first checks to make sure the user input a date in the correct format and that it is a valid date. Then it checks to see if it is a past date or a future date. I receive a Runtime Error 13 Type Mismatch error only if a nonsensical date...
  4. C

    [VBA]USE Mobile Data Collection - Scan-IT to Office SCAN BARCODE &INPUT TEXTBOX

    I used the Excel"Scan-IT to Office app" to scan barcode . When I use my phone scan barcode,it always input to A1 cell or A2 cell...>A3>A4>A5..... I need the "barcode number" input to the userform "textbox(A)" not "sheets's cell(A1)" Like the picture I need the "barcode number(60106-04...
  5. EX_CELL_DZ

    [ VBA ] NoSuchElementError | Help !

    I want to automate a website but every time I received this error. and the website does not load completely and it redirects directly to Google Sub Amatti() Dim GC As New WebDriver GC.Start "chrome", "" GC.Get "Request Rejected" GC.Wait ("10")...
  6. A

    There isn't enough memory to complete this action

    Hi all, When i press a button to run the VBA, previously it works but now shows the below message but my excel version is Microsoft 365. The VBA show error on here but i don't know why, would anyone help me? Thank you very much Below is my code: Dim wb As Workbook Dim wb2 As Workbook Dim...
  7. B

    Excel VBA Userform: Filtering a Listbox and Showing a "Live" Version of the Filtered Data Based on a Texbox Value

    I have a "Data" worksheet that I want users to be able to edit the data in this worksheet by using a Form (keep the data uniform). When the user opens the initial form (UserForm1), this will display all of the rows of data that they can select from to edit. Because this data set is large (will...
  8. I

    Automate SAP Theme setting by Excel VBA

    Hi........I try to automate the SAP theme setting by using Excel VBA. My requirement is “If Selected theme not equal to " Corbu Theme" then change the selected theme to " Corbu” This is the code to load the SAP GUI Options >>>Shell "C:\Program Files...
  9. M

    Making text bold using wdDoc.Content

    HI, I am a rookie VBA coder, I use it to automate work for myself :-) I have this piece of code that is part of a larger routine, all works but I would like to make some text bold and underlined and some normal. With wdDoc.Content '--- paste the range image first, because it...
  10. P

    Email list on Excell with template but missing Signature

    good afternoon all, I've been tasked to contact over 500 companies my work deals with on a regular basis and need updated details from, I have collated an email sheet and have used the following code to produce the emails to each company, as I didn't want to fill out an additional column on...
  11. J

    How to speed up the for - next statement using always the last 200 rows that contains text of a column

    Hi, in order to speed up my attached code, I would like to loop (for - next) only the last 200 rows instead to loop all the ranges AA:AA and L:L. How could I do that? Please, note that the data from Production data.xlsm is increasing every day and the code selects the ranges with an "X" in...
  12. B

    Error handling advice for webscrapping

    Hello I need some help with the code below, Sometimes the page does not login, sometimes the iframe does not load, I am looking for a way to handle this error and attempt again and not resume, if not then exit and login in again. In bold are the areas where sometimes it crashes. Any help or...
  13. An Quala

    Delete the empty sheets from a created file

    Hello, I use the following code to make a new file after deleting the certain columns from the old file, but I want to add one more thing here, if any of the three sheets ('Sponsored Products Campaigns', 'Sponsored Brands Campaigns' ,'Sponsored Display Campaigns') are empty (i.e. A2 is empty)...
  14. 2

    Excel VBA: after filter use, select resulting cell

    Happy Friday, On a spreadsheet, using a filter in a header row manually Top rows, including header are frozen After selecting an item from the filter list and clicking OK, Excel does not select the cell to which it just filtered How do I get XL to select the cell to which it just filtered...
  15. C

    Running VBA Code from Excel to delete a Rich Text Format from a Word Document Dependent on A Dropdown Box in Excel

    Hi all, I am working on a project that uses a form I have created in Excel to populate Rich Text Formats in a word document in order to streamline report generations. I have almost completed the project but I have ran into a problem I can't seem to figure out. I am fairly new to the VBA...
  16. Richard1982

    Excel/VBA automatically opening file - can I avoid this?

    I have a small section of VBA code (as part of a larger macro) which takes some of the pages of the report I'm working on and saves them to a new file. Dim wb As Workbook Set wb = Workbooks.Add ThisWorkbook.Worksheets(Array("Page 1", "Page 3", "Page 4", "Page 6", "Page 7")).Copy...
  17. A

    Get Excel to send an automatic email based on an end date

    good day, I am a very basic user and am trying to find a code to only send to a single email address (located in R1) using outlook based on all data in a spread sheet to let a supervisor know before someone returns. I would like this to be sent out -7 days prior to "End Date" in (column J). I...
  18. 2

    Excel VBA - replace multiple characters in a string by their position number

    In A1 I have a letter character, e.g. "H" In A2 I have a formula Need VBA to replace multiple characters in A2 string, by their position number, with A1 value Positions, counting spaces, are: 3 15 39 And another version, to replace by placeholder characters, i.e. if characters in A2 needing...
  19. D

    Excel VBA Code needed to connect 3 slicers to pivot table without right clicking and selecting report connections for each slicer

    Hi All, I recorded a macro to see if there was a way after I inserted 3 slicers, to select report connections for each of the slicers to select pivot table without having to right click and select report connections for each slicer. This is the below macro code from the recorder: Sub...
  20. Johnny Thunder

    VBA Help - Search range for cells with text and Align text to the Right and Increase Font Size

    Hello all, working on a code that needs to be able to search a specific range Sheet1.Range("N15:EM134") Once found process the below actions: Align text to the right of the cell Increase the font size of the found text to size 15 Alternatively, I would need to do the same thing in the same...

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