excel vba 2016

  1. M

    VBA Macro - Copy Dynamic Range from Sheet 1 to next available row on sheet 2

    Good day all, I hope this makes sense. I have a workbook that contains 2 sheets to start: One is called "Master" (Sheet1) - I have a macro that creates a copy of this sheet and renames it, so I hit the button, it creates a new sheet, I fill out the necessary cells, save it and do what I need...
  2. S

    VBA Api integration - Empty Return

    Hey guys. I have a question. I have a site and I want to pull data through this website. I wrote a VBA code but it seems it always return empty even though there are data. Here is the code; Sub dataxx() Dim request As New WinHttpRequest request.Open "Get"...
  3. H

    find names value via combobox

    Morning everyone I have got the code which perfectly working. combobox1 finds the staff number and then populates names in Combobox 1 & 5 however i would like to change this from a staff number to names find below is the code whereby it finds it using the staff number. the staff number is in...
  4. K

    Replacement for Visual Basic Object "CommonDialog"

    Hello, I have some old visual basic macros I am trying to convert to excel VBA. I am not sure what to do about the CommonDialog object. Searching online, I found that it’s obsolete and replaced by something else. Couldn’t find by what. Any suggestions Thanks
  5. P

    Generating multiple sheets from a sheet based on 2 dates

    I have a sheet "data-dump", which has data from row 2 (column A to D) onwards where row 2 has got headers. The first 2 columns of the sheet has Start-Date & End-Date. I need to create a macro such that it reads the data in the sheet "data-dump" and based on the column A & B i.e. Start-Date &...
  6. A

    Excel 2016 - VBA: Transform values in column into array

    Hello! Unfortunately, I have not worked with VBA arrays so far, and thus I don't know of how to transfer values in a column to an array. I hope someone can help me find a solution for it I have a variable list of URLs in column (("A1:A" & lastRow)) of worksheet "sheet1" wherêby lastRow =...
  7. N

    VBA reads cella value ok, but assigns a point value as 0

    I am trying to loop through a number of cells with vba, and return each cell's value. I used the watch windows, and saw that even though the cell().value returned a number different than 0, the a point array of double was assigned a value of 0. This is the code that I got from a site and edited...
  8. C

    Copy and Remove Dups

    HI all, Need a hand please... I am puzzled as to why the below code takes my file from 3.5mb to 100mb after running it once. I thought it was empty rows being added, but with the code to delete empty rows, it is still happening. Where did I go wrong... All I am doing is copying data to my...
  9. S

    Excel VBA to extract 2 or 3 keywords left and right from cell content

    Hi Friends, Trying to extract 2 or 3 keywords from cell content through excel vba. Sheet1 ColumnA has rows with content sample file attached. I need vba to search for keywords from sheet2 ColumnA in Sheet1 and extract 2 or 3 or 4 keywords from each row content into sheet3.(Popup box would be...
  10. D

    Check if sheet exists while looping through workbooks

    Hi all, can anyone help me call this function? I found this function to check if a sheet exists but I dont know how to call it. The macro looks at a folder and opens every excel workbook in it, extracting data. I am adding the fucntion for the eventuality that the user point the folderpicker...
  11. D

    Creating sheets from filter. How to modify to start from row 2.

    Hello all, Can decipher this impenetrable code sufficiently to make it ignore the first row on the sheet on which it runs? I am changing the sheet so that the control buttons take up row one. This sub is called from a larger sub that also changes the button settings so that they are...
  12. D

    Help with an Excel VBA Autofilter copy paste syntax problem anyone?

    Hi folks, I am a bit syuck on the auto-filter syntax. can anyone tell me how to change this so that I am not copying and pasting the whole row, but only copying range "A" to "L" to usdrws and pasting into range "B" to "M", (same rows as below). ws.AutoFilter.Range.Offset(1).EntireRow.Copy...
  13. D

    Microsoft Print to PDF Suppress "printing" Dialogue

    Hi, I wonder if anyone knows how to do this? I would really appreciate some help. I did find something i think is the answer but it is very old and i have no idea how to use it. I have a macro that runs through an excel sheet, reads an address of otehr workbooks from hyperlinks in column A...
  14. S

    Run-time error 3343 - Is there a solution

    I have the following code but have not found a solution online. Has anyone figured out a solution? or would this relate to an authentication issue from my company's server? how do I get around that? I have the following references: Microsoft Access 16.0 Object Library Microsoft DAO 3.6...
  15. D

    Find and Replace any characters in a list of characters

    Hi, i could really use some help with this. i have this code that checks a column for an illegal character (for sheet name) and replaces it with "_". I want it to check for the fill list of characters that are not allowable sheet names .Pattern = "[\<\>\*\\\/\?|]" Sub...
  16. D

    Error '1004' Sort method of range class failed

    Can anyone figure out why this fails? I have done everything i can think of to make sure there is nothing to bother it. I have run it with the header cleared, I have deleted all rows with any illegal characters. Ii have added a little sub to do this too. I am using a script i that creates...
  17. D

    VBA Creating Named Tables in multiple sheets in new workbook

    Hi, i have some code that a) filters data from the table in one sheet into a group of new sheets named by the filter value b) creates a new workbook from these sheets The script does the above. The additional code has no effect that i can see. It doesnt stop it working, it just doesnt do...
  18. D

    VBA Subtotals one filter criteria from another column

    I have expenses sheets where various columns of figures need to be totalled according to the filter criteria in the costs centre column. I had been trying the subtotal 9/109 function expecting that to work, but it seems you can only subtotal if the column is filtered on its own values. The...
  19. D

    vba Export Excel to PDF. 2 pages. One Portrait, One landscape.

    Hello, if anyone knows how to do this, I would appreciate a pointer. There are a few threads on it but i havent found one that actually answers the question of how to do it as one PDF with different orientations per page. This is where i am at so far... Sub ExportPDF2() Dim sFile As String...
  20. D

    Return multiple data from excel sheet using vba

    Good day all, Please, I have a slight problem. I created a userform with 40 textboxes that submits its contents to sheet1. The userform generates a time stamp in a label (label2) using Format(Now(), "H:MM"). When I click the submit button upon filling the form, each filled textbox is...

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