a.value

  1. R

    Editing imported data

    First, I should point out I'm using Excel for Mac. So I've gone to File, Import, CSV file, selected the file and it has imported successfully on my spreadsheet. I've also got a Macro set up so every few seconds it checks for updates and refreshes the imported data. I'm trying to make it so if...
  2. L

    adding text to two different cells and highlighting row

    Hello, Can someone please help me with this? I am using a Dim statement in VBA but would like to expand my text to the next column over. Here's what I have so far: Sub CommercialMarketPlace() ActiveSheet.Select Dim a As Long For a = 1 To Cells(Rows.Count, "S").End(xlUp).Row If Range("S" &...
  3. T

    Command button that generates sequential numbers in column A

    Hello Friends, As the title says, I want to create a command button that when clicked, will generate a sequential number starting from 1. This is what I have coded for it Private Sub CommandButton1_Click() If CurrentRow = 5 Then ThisWorkbook.Worksheets("FR").Cells(CurrentRow...
  4. L

    Amy possible that i can create a simple VBA based of repetitive VBA

    Hello, everyone.. i need some help to make this repetitive VBA into a very simple VBA My repetitive VBA were shown as below If Target.Address = "$L$6" Then a = Sheets("Price Record").Cells(Rows.Count, "A").End(xlUp).Row + 1 Sheets("Price Record").Range("A" & a).Value =...
  5. R

    Loop through list and find all additional criteria, then add below.

    Hello, Have a situation developing here. There is one sheet "CT" which has a list of products and the dates next to them. The list is incomplete and I need to fill criteria from another sheet, "PP" This is what I have so far. Dim Lastrow As Long, Row As Long Set ct = Worksheets("Campaign...
  6. R

    VBA - Do Until Loop within Do Until Loop

    I am such a VBA noob. ML.Activate Do Until Cells(ActiveCell.Row, "A") = "" tnam = Cells(ActiveCell.Row, "H").Value tno = Cells(ActiveCell.Row, "A").Value pup = Cells(ActiveCell.Row, "G").Value pp.Activate Range("A3").Activate Do Until Cells(ActiveCell.Row...
  7. R

    VBA to move the rightmost non-empty cell into column F

    I have a table of data which contains address fields across columns C to F. Column C will always be the first line of the address which is fine, however, the postcode, which needs to be in column F, can be in either D, E or F. What I need is code that can start with a Do Until, end in a...
  8. M

    Extracting data & filenames from multiple text files

    I have a folder with 40 text files. The files contain test data from running the same test repeatedly on 8 test units, 5 times in a row. I expect to repeat this testing many times in the future, and so I am trying to speed up the data extraction time versus cutting and pasting. Once the data is...
  9. C

    Adding numbers in sequence using VBA

    Hi all. I use the code below to add missing numbers in a sequence. It works well, but if there is a letter with a number, it fails EG: 1 2 2A 3 5 Sub Add_In_Sequence() Dim LastRow As Long Dim gap As Long Dim i As Long, ii As Long Application.Screenupdating = False With...
  10. R

    using a hyphen on Userform.

    In my Userform I have this code that when you put the customer number in and it populates the textBoxes with the customer info. I have a few customers that have a dash at the end such as 45610-2. It will not let me add a hyphen (dash). Is there a way I can use the dash on the userfom? Thank you...
  11. D

    Tidy up VBA Code

    Hi All, I've got a piece of VBA that I've developed that works perfectly fine apart from being slow why has to work on a lot of data at once. I know there will be a way to tidy this up and make it smaller however its out of my skill range at the moment. I would greatly appreciate anyone who...
  12. F

    Can't assign value to variable

    In the following macro a value shows in cell A61 when theworkbook opens and remains until line “Cells(D + 1,"A").Value = intPrice” is executed. It then disappears so no value isassigned to intPrice. Can anybody help with this problem? Thanks in advance forany assistance. Sub Macro3() Dim symBol...
  13. D

    VBA Help

    Hi Guys, Could you assist me with the below please, I want to just copy rows A:F when column A contains the word SSN. at the moment it copys the entire row, cannot figure this one out. Private Sub Workbook_Open2() Dim i, LastRow LastRow = Sheets("Sheet1").Range("A" &...
  14. V

    code needed for lower case and upper case with condition..

    I have question on this, please. Please guide, what can be the solution.. I have some preposition's in my sentence..which are.. and, at, is, for, of, or I want to keep them in small letter and rest other text in proper case... I am showing my code.. '*Text Formating Proper, LowerCase...
  15. S

    VBA Compare Cell Value Between and Then Print a sheet

    Hi, Thanks for looking. Have been puzzling over this for an hour now but cannot piece in the missing part to the below. All I want to do is... - Define a range starting in cell A3 - Compare the value in column A with cell Q2, greater than or equal to and compare to cell S2 less than or equal...
  16. H

    Delete the few whole rows that contains certain text or value for specific sheet

    Hi there. I am trying to delete any rows that have specific texts such as "car", "labor", "bat" for one of the sheet say sheet2 but my macro doesn't seem to work right. appreciate your help. Sub deleterow() For i = last To 1 Step -1 If (Cells(i, "A").Value) = "Labor" Then...
  17. A

    VBA Userforms

    Hello All, I have this script for moving data from a userform to a TABLE on a sheet called Main. This is not working as the line "LR = Main.Cells(Rows.Count, "A").End(x1up).Row" keeps stopping. Can you have a look and let me know if you can see anything wrong. SideNote: I would also like a...
  18. A

    Macro to move the data across the sheets in a workbook after searching the matching ID

    Hi , I am very new to VBA Coding .I am trying to write a macro to move the data across the sheets in a workbook . There are two sheets Active and Resignees. When I enter the ID in Resignees sheet (Cell D1 ) it should search the ID in Active sheet (Sheet having complete headcount details ) and...

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