excel vba

  1. 2

    excel vba autofill (fill down) formula error

    Trying to have VBA fill in a formula in the range, but getting below error... Sub GFormula() Range("G10:G27").Formula = "=IF(B10="","",IF(OR(B10="LABOR - CU",B10="TRVL - CU"),"HOURS","EACH"))" End Sub
  2. R

    Multiple Excel Files Data extraction issue

    I have a little issue with my code. The purpose is to get a specific range of data from each file (F19:F42), and to copy that range to another file's gathering sheet named "Extraction" piece below the previous piece, and form a column with 720/744 rows of data, depending the month. The issue is...
  3. S

    How to Use Countif Formula for Last Column Only and untill Last row

    Good After Noon, Trust everyone is Good Preparing a small tool which helps me in Daily routine at my work. I have a data where i am creating a pivot table and need to report out the numbers to my Team where we stand. I have written a code so far where pivot table is getting populated with the...
  4. N

    SAP Automation with Excel VBA

    Hi All, I am working on my SAP automation process. I have written most of it but I am struggling with writing code for copying dates from two different rows to Posting date : "from" and "to". LastRow = sht.Range("D2").CurrentRegion.Rows.Count sht.Range("D2").Copy...
  5. L

    Open New Work Sheet for projects on Main sheet and when new projects are added

    Hi, I have an excel document with a list of projects and need to do notes for each project. I want to open a worksheet for each project and for the new added projects with a VBA code. The new worksheet needs be be labeled with the name of the project/s There also need to be a lay-out on these...
  6. N

    VB.net "vs" Excel VBA

    Hello everybody, I have recently started learning Excel VBA, with an eye of making a couple of apps for myself. However, I would now be interested to make them as .exe files and standalone projects, so that I might possibly be able to sell them. So far I realize that ; - Excel VBA needs ...
  7. A

    Exclude Specific Columns from Range in VBA

    Hello, I have a code that returns unique rows from one sheet to another. I want to exclude specific columns from the range from B5:P1048576 and show them in Sheets("Item-Wise Summary").Range("A5:O5") Sub RemoveDuplicates() Dim rngDatabase As Range 'define the database Set rngDatabase =...
  8. A

    2 OptionButtons if value is false on both of them.....

    2 OptionButtons if value is false on both of them then show error message after that let user go back to select optionbuttons again or start all over again How I can do that? I spent many hours for this but not success. Thank you very much.
  9. B

    How to digitally sign an Excel workbook via VBA

    Hi all, hope that someone will be able to help.. I am trying to find out if it is possible to apply a digital signature to an Excel file programmatically via VBA. At the moment, I am going around in circles trying to find an answer and getting nowhere fast. Little bit of background for...
  10. S

    Excel VBA display the value of first and last index of selected items on list box

    Hi all, this is my first time to post here! :) I am helpless now, I cannot display the value of the first and last index of selected items on a list box thru MsgBox. It only displays me boolean values. Here is the code: x = lb2.ListIndex = 0 'get first index of listbox MsgBox x I'm thinking...
  11. D

    VBA Excel365 - Need to find the last merged cell in a column

    in a sheet I have column A with merged rows in groups of 7 rows Using VBA I want to find either: - if the ID is already present a row: return the row number where the value is found - if the ID doesn't exist: return the row number of the first free cell I was using this code in another sheet...
  12. N

    Delete not necessary column and rearrange column

    I manage to import CSV or text files to this macro. I combine it with Module 1(please refer file attachment). The arrangement column is a little different. I have difficulty doing this: The data file that I want to import is below screenshot (please refer to TEST_DATA attachment) The data...
  13. J

    Excel VBA : Match the data from another workbook and return another column value

    So, i have a 'Summary' workbook that consists of zone, state, city, and total income. Inside one zone, there are a states. And inside the states, there are a cities. What i'm trying to do is to find the total income of each city in column D and summarize the total income of each state. To get...
  14. F

    Tricky VBA Loop Through Excel Table Range and Change Total Column Formula

    All, I have a tricky VBA Code Scenario. I'm trying to define a table range then loop through all columns in said table range and change the formula in the total row of the table. The Tricky Part is my Table Self Updates so the number of columns and the label of the columns change depending...
  15. markkeith

    VBA range.formula2 error when using dynamic array formula SEQUENCE

    I'm trying to use the SEQUENCE formula in the code below but getting a run-time error. Am I missing something in my code? Private Sub Worksheet_Change(ByVal Target As Range) Application.EnableEvents = False Application.ScreenUpdating = False If Not Intersect(Target, Range("startDate")) Is...
  16. V

    Excel vba to access Open/Save dialog

    Hello everyone, I am trying to download a document from a website using vba. So far I can click the print icon on website (using vba) but I am stuck when it shows Open/Save dialog box. Please help on how I can access or click the "Save" button and save file to a given location. Any help is...
  17. S

    How to move the code on if no cells have been found

    Hey All, I'm getting the error that no cells have been found when running the following code. Although it is correct and no cells have been found under the criteria I've put, I want the code to just move on and continue with the code. Could anyone help me to do this? I am a beginner when it...
  18. N

    VBA Generating PDFs with separate excel sheet as well

    Dear All, I have to randomly select six clusters/ villages using PPS method (Probability proportional to size) for a geographic unit for surveys. I already have an excel file that does it for me using macro (Module1: RUN_CLUSTER) and generates PDF files using the macro (Module2) I have a fixed...
  19. J

    SQL query works in access but when called from Excel

    I am trying to send an SQL query string from Excel VBA to an access database. I have a standard module for this and it works fine except when I am trying to get this query to run. sSQL = SELECT SV_CgRefset.Name FROM SV_CgRefset WHERE ((SV_CgRefset.Name) = "CKD_15"); In short this gets to the...
  20. N

    VBA to copy visible (NOT hidden) rows of data to another tab

    Hi, I came across a similar thread VBA to copy range data with all visible and invisible cells to another sheet on MrExcel.com and was hoping to get some assistance on my scenario which is as follows: What I have on a tab (name: origin) Station People Cars A 12 29 B 6 10 C 4 2 TBC...

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