excel vba 2013

  1. A

    VBA code for file save as in Excel 2013

    Hi, I have some code that needs to be updated but I'm not sure how to change. I am trying to save as into Excel 2013 excel workbook. This is the code I have: FileSaveName = Application.GetSaveAsFilename(InitialFileName:=ActiveWorkbook.Name, FileFilter:="Excel 2003 (*.xls), *.xls")...
  2. P

    To Format date over range of cells in Excel vba

    Hi, I am trying to format date over range of cells using Format(). Sheets("Details (Deliverables)").Range(Format(CDate(Cells(i, "N")), "dd/mm/yyyy"), Format(CDate(Cells(i, "W")), "dd/mm/yyyy")).Select I got error for this.I having Excel 2013. I tried using .NumberFormat but it is not working...
  3. J

    Alternate Filtering of Data Excel Vba

    Hi is there a way to make Excel column data alternating. For example : I would used it to evenly ditribute data to personnel so they would have a mixture of data and not only handling data with tagged as New or Old. Thank you
  4. A

    Split specific columns into mutiple work sheets delimited by a column as well

    Good afternoon, I was searching the forms and thought I would find the input to my hurdle. I am trying to extract records from a detailed worksheet into separate sheets but only specific columns. I thought I might find a script for each of these two steps and merge the scripts together, but I...
  5. M

    Read a Text File with VBA into Excel

    I have a huge text file that I want to extract specific data and put each one it into a column in excel. I not even sure how to start. I've only done simple code in excel before. The data in the text file looks like the following date. Report name Page number time run option: print...
  6. G

    Autofit and Autofilter in Excel VBA - Revision Needed on my code?

    Hello, I am learning VBA and have a large code that formats an Excel spreadsheet. The code works, but I just want to see if there is a better way to write the code of Autofit and Autofilter than what I have below for the sake of learning. I ask, too, b/c I hear some people say to not use Select...
  7. J

    copying and pasting data from sheet 1 to sheet 2 in VBA

    Alright I've figured out a lot of ways to copy and paste data, but none work how I want them to. If I have set cells and ranges from sheet 1: B3,B10,B17,B24,B31,B38,B45(Cells) C2:H7,C9:H14,C16:H21:C23:H28...
  8. G

    VBA to Highlight row if match criteria in another workbook

    Hello, I'm learning Excel VBA and I would appreciate help. I'm trying to highlight a row of data in one workbook (Table 1) if criteria in column A matches criteria in column A of another workbook. I need help referencing the other workbook without naming it explicitly, the...
  9. A

    Select a group of SHAPES by NAME

    Hi everyone... I selected 5 shapes and defined a name in "Name Manger" the name is (MonthlyReports), iam trying to write a short code to make them all visible or not. the code should look something like that shapes.group("MonthlyReports").visible=false and obviously it's not working,
  10. M

    Use Bookmarks To Fill in word Doc From excel

    Hi everyone , I have an excel file that contains my data , and a word form . I want to fill The word form with my excel data . (I've bookmarked texts that needs to be fill out ) for example i want to choose row 2-10 in excel and and click on a button to export 9 word document that filled out...
  11. I

    VBA Incorrect Date Format When Saving As .csv

    Hi, I wonder whether someone may be able to help me please. I'm using the code below to copy a selected range of cells, create a new workbook and then paste the data into sheet 1 from the source to the recipient sheet. Sub copysheet() Application.ScreenUpdating = False Dim Src As...
  12. olorin

    userform listbox (again)

    I can populate a userform combobox (cboPnum) using vba and additem method (2 columns) When the user selects an item in cboPnum, and then enters a qty in a text box (tbQty) the correct information is then added to a listbox (lbItemsShipped). All great so far... What I cannot fathom, is how to add...
  13. N

    Transform and tabulate rows of data in specified format

    I am wanted to simplify the task of transforming 1000's of data in rows into a table with specified column headings. I do manual copy paste of data which is tedious. <colgroup><col><col><col><col></colgroup><tbody> g l m 1 PT-55002 0 135 2 PT-55002 0 135 3 AIT-98932 -200...
  14. H

    remove string if the same string is contained in the above rows.

    Is it possible to remove a string if the exact same string is contained in the cell above it? How about below it? Example: <tbody> A B 1 Step 1. Place the key in the ignition. Step 1. Place the key in the ignition. 2 Step 1. Place the key in the ignition. Step 2 Turn the key...
  15. H

    Locate criteria in a string, pull data +/-5 characters to get price

    I have extracted a rather large XML file. Inside the file was an old method of how I stored my invoices. Here is the string of text that I have: Data sp 199 blah blah blah blah blah 60 cbl blah Door 999 blah blah blah blah 299 sp door 888 blah blah Here is what I am looking to get done...
  16. H

    Locate criteria in a string, pull data +/-5 characters to get price

    I have extracted a rather large XML file. Inside the file was an old method of how I stored my invoices. Here is the string of text that I have: Data sp 199 blah blah blah blah blah 60 cbl blah Door 999 blah blah blah blah 299 sp door 888...
  17. H

    ActiveCell to Column J

    Sub macro1() If IsEmpty(ActiveCell.Offset(0, 10).Value) = True Then 'checks to see if the field is blank first ActiveCell.Cut Destination:=Cells(ActiveCell.Columns("j")) ' <-----heres where I go fuzzy, had it working from colB to J, but my colB will change...
  18. H

    Copy Columns B:G to A w/VBA

    Sub Macro5() Range("b1").Select For counter = 1 To 10 ActiveCell.Select Range(Selection, Selection.End(xlDown)).Select Selection.Cut Range("a1048576").Select Selection.End(xlUp).Select ActiveCell.Offset(1, 0).Select ActiveSheet.Paste Columns(2).EntireColumn.Delete...
  19. H

    How can I edit this macro to run on active column?

    I have columns up to ("PL") and I would like to remove duplicates from each column. Sub Macro3() ' Macro3 Macro Selection.EntireColumn.SelectColumns("AA:AA").Select ActiveSheet.Range("$AA$1:$AA$96769").RemoveDuplicates Columns:=1, Header:= _ xlNo...
  20. H

    Multiple Find/Replace VBA

    <colgroup><col style="text-align: center;"><col style="text-align: center;"><col span="2" style="text-align: center;"><col style="text-align: center;"></colgroup><tbody></tbody> <tbody> A B C D 1 String BadWord GoodWord 2 baseball hckey hockey 3 hockey basebll baseball 4 I love...

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