cell.offset0

  1. sharky12345

    Error trying to find value in column

    I have this formula which I use to find if a value exists in a range; For Each cell In Sheet14.Range("B4:B23") Set found = Sheet4.Columns("N").Find(what:=cell.Offset(0, 15), LookIn:=xlValues, LookAt:=xlWhole) If found Is Nothing Then Exit Sub If cell.Offset(0, 2) = "Area" Or cell.Offset(0, 2)...
  2. sharky12345

    Update column with values but exclude existing

    I'm trying to update a column with values depending on a certain criteria using this; Sheet14.Range("N4:O23").ClearContents For Each cell In Sheet14.Range("B4:B23") If cell <> "" Then If cell.Offset(0, 2) = "" Then Else If...
  3. D

    Copying table data to another sheet dynamically

    I have a macro that pastes table data into another worksheet. The code is obviously incomplete. The problem is that each time I execute the sub, the routine duplicates the table data, inserting the data into the worksheets defined last row. Can anybody help me? How can I stop it from...
  4. B

    Help me with this macro

    Private Sub Worksheet_Change(ByVal Target As Range) Dim cell As Range Set cell = Range("B1") If cell.Formula.Value = "=>5" Then cell.Offset(0, 0).AddComment "SUBSTRACT THEM" Else cell.Offset(0, 0).AddComment "ADD THEM" End If End Sub my intention to add comment for targeting value if the...
  5. A

    Excel Macro with UDF - Sometimes calculates perfectly but sometimes doesn't

    I've attached my VBA Macros and the UDF, I've highlighted in yellow example rows of where the time sometimes calculates perfectly, then other times it just adds a 0 in the cell. I'm really not sure what the issue is. I can also send the file is necessary. Any help would be much appreciated...
  6. D

    VBA error when cell is empty

    Hi everyone A right newbie here so please take it easy on me! I've been using the below code to do a tailored mail merge with specific attachments to my recipients. There will be varied mailing, where some people will receive 1 attachment, and some with 3 for example. The problem that I have...
  7. Q

    Clearing Items in a Filtered Table from items selected on a Listbox

    Hello everyone, Background info: I've created a workbook that I use to assign work. The worksheet that houses the data, named "Assigned", consists of 16 columns of data in a table. The information in the last three columns are submitted when the user highlights a row or data in a SingleItem...
  8. C

    VBA Code For, If, Then, Else Statements

    Hi All, Please see code below... I have tried running this and obviously it doesn't work (likely for multiple reasons) however, I don't have the knowledge to know how to make this work. I feel like the logic is clear but obviously the way it is written is wrong... can anyone help? Sub...
  9. F

    VBA Copy and paste date and add a comment

    Hi, I have a vba macro that compares uid in two sheets, once the uid match then i compare the QTY, if the QTY do not match the vba returns incomplete and if they do then it is complete. In my file i have a sheet with the list of uid to be run and also in the next column i have specific dates...
  10. A

    Select 'From Address' in Outlook

    Hi Friends, I'm new to VBA and trying to create a macro for sending mails from Outlook using the details in a excel sheet. It works fine. However, I need the code to select the 'From Address' from the excel sheet, but it's not working. PLease help. Set OutMail = OutApp.CreateItem(0)...
  11. Frans Scheepers

    Type Mismatch

    Hi all I have the following problem. <b>I have this code in an Excel macro:</b> For Each cell In [KMLData!A3.A2500] pmValid = cell.Offset(0, 4) pmName = cell.Offset(0, 4) pmLongitude = cell.Offset(0, 10) pmLatitude = cell.Offset(0, 11)...
  12. R

    change from calculating vertically (each cell in Column) to horizontally (row)

    Hello I have this working code that calculates from row 2 to 1000 on column L and skips 4 columns to P then T and so on... skipping 4 columns at a time up to column 176 (PT) but I see it is taking too long to calculate Here is the code that works vertically now Sub CALC2_() Dim rng As...
  13. R

    How to repeat VBA to the next 4th column on right if there is values on that column and how to highlight text and negative numbers

    Hey everyone, This is a basic math inventory and order tracker. Each week 1 inventory is to be imputed, I want the code to repeat as necessary until the next inventory column is empty Also to highlight Negative numbers in RED and Text in ORANGE. anywhere in the big selection within L2 to...
  14. A

    Using if InStr statement

    Hi All I have a problem in bulding my macro, please help I am using below code to find out the line which contains "USD" and this is working fine. Now is it possible to insert one more condition All I want is the code should execute the formula only if cell starts with numbers 1 to 9 and ends...

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