macros and vba

  1. N

    Double Click Macro that creates new sheet using SQL query

    Hello, I am still in the process of learning macros, and I was tasked with the following scenario, please help steer me in the right direction! I have an excel workbook that is populated with lots of pricing information. Column A is the product_ID and I want column AP to be the lowest...
  2. S

    VBA: Am I double-calling a Sub given nested If statements? Or other inefficiencies?

    Hello, I'm new to VBA and trying to make a custom Dashboard for a manager. Below lies my attempt at creating a data refresh and save macro that will be tied to a button on the "Dashboard" sheet. My main question is: Am I actually calling the RefreshData() sub twice in WriteData(), thereby...
  3. T

    Range of Cells to Body of Email (Original Sig Included) Using VBA

    Hello! I'm new to VBA, this is honestly my first time playing around in it, and I need some assistance. I have a group of cells on my excel sheet that I want to have copied and pasted into the email body, but everything I try comes up with nothing. :( Could anyone help? I also really need my...
  4. R

    VBA - Apply Macros to 100 workbooks without needing to open workbooks individually to apply Macros

    Hello, I am looking for any assistance in relation to Excel Macros and VBA I am currently using the following on my Excel Workbooks (which were kindly provided by people on MrExcel) Sub Macro1() ' ' Macro1 Macro ' ' Keyboard Shortcut: Ctrl+z ' Dim ws As Worksheet For Each ws In Sheets...
  5. C

    Moving sheets with macros and buttons into new workbooks

    Hi, I currently run a macro via a button, However when I copy the worksheet into a new workbook (which I must do regularly as part of our process with new jobs) , the button remains assigned to the macro in the original workbook and does not change to the macro copied with the new workbook...
  6. N

    Cell validations

    I have a written a script in VBA. while checking a CheckBox, it should check if respective cells(D26,D27,D28) have numerical value or not. The below code is working if I am writing values under/or 10000. If I am giving some larger values, its not working. Please help me how to achieve this.
  7. K

    Macro help.

    This is My macro: I want to count each cell depending on the colour for a particular range. Below is the example of the macro used: The bracket in red is the range I am searching for the colour specified in cell B1. This "CountByResult" only works when I click on the cell that contains the...
  8. M

    Edit CSV file adding double quote via macro

    Hello, i have created an excel file where there is a button and when the user presses it, it prompts a window for the user to select a CSV file to be edited. After the file is selected i make some changes and save it to a new csv file that works fine, but i struggle to add double quotes (") to...
  9. N

    Macro not working on button click

    I have a macro that works correctly when I run it from developer mode, but when I try to run the macro by clicking on a shape that has the macro assigned to it, it does not work. Can someone please tell me how can I fix this error, since I need to be able to run my macro by clickin on the shape...
  10. I

    Macros and sharepoint

    Hi everyone, I know Microsoft recently changed their rules about using macros on files on sharepoint, has anyone managed to get around it? I've tried adding it as a trusted site but it still doesn't allow it. Thanks in advance for any advice!
  11. M

    VBA/Macros help for an Excel to Word document generator. Need to create and find/replace X tables, where X is the numberof rows TRUE in another sheet

    Hi Excel brains trust, My company have created a Report generator using a spreadsheet + VBA/macros. To use it, our employees fill in a row, select a template from a dropdown, enter the reference pertaining to it, and then click a "Create Document" button. The code then reads which template is...
  12. M

    Find and Replace using Macros

    Hi! I'm trying to do this in Excel using Macros. I can't find any code to do this: The user should be able to push a button on the Large Dataset tab that brings up a user input box. (Hint: Learn how to do this by watching the tutorial video on creating a button) The macro should prompt the user...
  13. A

    excel 2016, How to apply like, to search and exclude for email addresses, in a URN filter?

    hi I need to search sender e-mail address excluding microsoft and no-reply@notify.aol.com for a date. This code work for microsoft only. Filter = "@SQL= (NOT urn:schemas:httpmail:fromemail like '%microsoft%'" & _ " And urn:schemas:httpmail:datereceived = " & daterec& "))" But when...
  14. B

    Using Macros to extract data from multiple Excel Wb's located in an independent directory and deposit that data into a 'Master' file

    Hi there, I am looking for assistance in automating a task in my job. I am a novice when It comes to using VBA/macros and so far I have been unable to get answers to my problem through browsing the website. My objective is the following: I have a folder directory in which daily excel...
  15. B

    VBA Macro will post formula incorrectly

    Hello everyone. I am using a macro to consolidate two files and have the information referenced between two sheets, but when the macro is supposed to paste a formula {=IFERROR(VLOOKUP(B6,GTN!A:C,2,FALSE),""}, what I end up getting is a different one {=IFERROR(VLOOKUP('B6',GTN!A:M:M,2,FALSE),"")}...
  16. R

    Marquee (moving text) in the excel

    Hi all Mentors, Deeply appreciated any help. I have created one excel for stock entry, there are four sheets, in that; first is Home sheet where in Cell B5 there I want to one moving text from right to left. I was able to achieve that task, but when I am trying to navigate with other sheets...
  17. J

    Opening a workbook using array values

    Hello I'm trying to figure out a way to open the workbooks using the array values stored. The only bug I encounter is at "Workbooks.Open(StoreList(0))" where I encounter "run-time error 0 subscript out of range" but the address is correct so I don't know why it can't find it? Sub uniquestores()...
  18. F

    excel vba ile iWorkBetter altyapısı kullanılan bir sitede seçim işlemi yapmak..

    Üzerinde çalıştığım site iWorkBetter altyapısı kullanılan yapılmış. dolayısıyla internet explorer vba kullanmakta sorunlar yaşıyorum.. bilgisayarda selenium varken aşağıdaki kod ile seçim yapabiliyordum ancak şuan selenium kullanmam mümkün değil. dolayısıyla sadece excel vba ve ie tarayıcı...
  19. K

    how to check if a date is old

    I'm creating a database of a library, I created a macro to check if the expiry date of the request that the user made has already passed, if this has happened the cell value should be "Expired Term" otherwise it should be "Pending" , but when the program executes the macro it always shows the...
  20. K

    account validation crashed in vba macro

    I have a macro to check if the user has entered the "Username" and the "Password" correctly depending on the data present in another excel file, it happens that I enter the data correctly and the program detects that the password or user is wrong Private Sub bt_seguinte_Click() 'Oculta as...

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