vba

  1. E

    I have 1 UserForm and want to save to different sheets in the same workbook

    Hello all, I think this topic has been discussed in many posts here and other forums. I'm sorry for the Clickbait (for some), however, I was unable to solve my problem.... I have a workbook to register my expenses, so I have a Sheet for every month of the year: so, first sheet is for January...
  2. M

    Sum the values between two specified column headings - number of columns between will change

    Good morning all, My column headings are in row 7. The below code works fine. However, the ActiveCell.Formula = "=G8" needs changing (the active cell is the Subtotal column). I need it to sum the values between two columns called "Calculated payment based on time and costs" and "Subtotal"...
  3. S

    Return error if "Filter" doesn't return the required entry

    I currently have the sub-Macro below which filters for Columns A and B (for Strings Asset and SN), and then copies the value. What I'm trying to figure out is how do I set it so that if no results are found for either, the macro would generate an error instead of crashing/copying just the title...
  4. S

    Macro crashes since update of excel to v.2408.

    Hi all, I seek your help again. I have this VBA: Sheets("Data_analysis").Select Set pvFld = ActiveSheet.PivotTables("Data_analysis").PivotFields("Entered on") strFilter = ActiveWorkbook.Sheets("MAIN").Range("C3").Value pvFld.PivotFilters.Add2 xlCaptionEquals, , strFilter It worked...
  5. R

    TextToColumns, VBA to uncheck "Treat consecutive delimiters as one"

    The below code parses a single column address to dedicated columns for Address1, Address2, City, State, Zip. The code first tests the original column and places commas so that TextToColumns can do its work with commas as the delimeter. My problem is, Excel keeps returning the TextToColumns...
  6. R

    Export excel file as PDF into a targeted pc folder based on cell value

    I have a code in excel sheet to save the currant page as pdf into pc folder based on cell value + current month text and it's working perfectly with just one problem - when I have an old file already saved in the folder and I need to save a new one with the same month name, the new file...
  7. R

    VBA Queries refresh and Save data as TXT

    I wrote this code to refresh all my queries first and save the "Schedule" table as a .txt file. (Table: "Schedule" is coming from query) However, the problem with the code is that it does not refresh the queries; it just saves the table's existing/outdated data, which is not required. I want to...
  8. R

    Msbox VBA code when cell value is changed

    I'm stuck with a part of long VBA code in my worksheet to pop up Msgbox in case if cell vlaue was edited - here is the probelm I have a worksheet that collect data from other sheet with formulas to show me the employee records and ID image when I only insert the employee ID number in Cell "E5...
  9. S

    VBA - Overpass default Scripting.Dictionary Keys comparison

    Hello, I am currently working on a set of two classes: one being a custom object model, and the latter a custom Dictionary class, with my 1st class as key, and the items being arraylists. I am facing a problem for which i am completely aware and kinda anticipated. It is explained here in...
  10. M

    VBA Hide/Unhide Columns, different/multiple sheets

    I have two sheets, "Operation" and "EHSQ", I want to be able to hide and unhide certain columns on these sheets, I am thinking of using a a shape and assign the macro where the user can press, like Q1, Q2, Q3 etc. So the user hits Q1, if the columns are unhidden, then the macro hides it and vice...
  11. H

    Create a timestamp in excel using VBA that is static

    very very new to VBA but i have a spreadsheet that has entries by several people as a log. i have tried the below code but every time the sheet was opened, the dates update: Function Timestamp(Reference As Range) If Reference.Value <> "" Then Timestamp = Format(Now, "dd/mm/yyyy") Else...
  12. B

    Error on method intersect

    Hi to all, Here I am again to bring my problems with vba. I have a workbook where I have a few sheets, that all have one table and one pivot table. To update the data on the pivot table, I have this code, that runs when I change the column "Valor s/ Iva" on the table: Private Sub...
  13. D

    VBA Coding for adding Pivot Table with changing data table

    Hello there, Looking for some guidance on how to code into my macro adding a Pivot Table that has a variable data set. I have the attached coding but does not work if the data set increases/decreases. TIA! Sub BuyerItemPivotTable() ' ' BuyerItemPivotTable Macro ' '...
  14. Rob_010101

    VBA to turn a row into values only (based on list item)

    Hello, Column J has a data validation list with the following 3 options: 1. Pending 2. Fit for work 3. Not fit for work I would like to add VBA which converts the row (from A to I) into values only (i.e converts any formulas into values) when "fit for work" or "not fit for work" is selected...
  15. R

    Find the value in a string using the corresponding phrase

    Hello everyone! I know excel well, but I don't know vba. I would be grateful for any help. Based on the table (М-55 МP) i need to use any tool to build a module that, when checking a product line with options, would automatically display its production date. Line to check -...
  16. M

    automatically hiding a row

    HI I hope you can help, I have been looking online and either I dont have the feature or i cannot do it. I have a table Column B to F and I want to hide the row if column F shows the word Completed. I have looked at conditional formatting but cannot find how to hide, not even sure where to...
  17. E

    Go to ActiveSheet.Range

    I can't seem to get this VBA to go to E15 ! Otherwise, it is fine. Private Sub Worksheet_Calculate() If Range("E24").Value > "1" Then MsgBox "CLEAR" ActiveSheet.Range("E15").Select End If End Sub Thanks
  18. E

    Disable Autocomplete VBA in a cell range

    For some unknown reason, whenever I paste a letter in cell e2 that is the same as the first letter in cell e9, it Autocompletes rather than just keeping the one letter "F". If I shut off Autocomplete it works fine. Similarly if I move "FLAME" to another column it also works fine. This happens...
  19. S

    VBA : Reflection Workspace extract all screen/pages

    Hi Good People, Currently I am working on a tool that would extract Reflection Workspace data to an excel file. The proble is, there are multiple pages or screen of a specific screen. Like for example. I managed to copy the first page of the screen, then you have to press page down key inorder...
  20. M

    code to include a column or more based on checkbox

    I have this code that sends a range as a picture into an outlook email. I added checkboxes and want to be able to modify the code to send the contents in range B4:B17 and one or all of C,D, and E depending on if the checkbox is true. I have no idea how to do this, can anyone help me? Sub...

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