activecell.offset0

  1. L

    Copy and Paste with VBA if a certain condition is met

    Greetings all, I am updating an estimating spreadsheet that I wrote probably 15 to 20 years ago. I wrote a macro back then that transferred information from the cost part of the sheet to the estimate sheet below, but it was in the old XLA format and I can no longer save it or make changes to...
  2. VBE313

    Easier Way to Write Nested IFs and Iterating Offsets

    What is a less rigorous way or writing this? Sub COSTPLANBREAKDOWN() Dim rngstart As Range Dim tst As Range, lastrow As Long Dim cl As Object Dim L As Long, strcells As String, lsr As String, toplvl As String, comm As String, flat As String Dim CLT As String, PLT As String...
  3. M

    VBA Code to drop values in cells at the same time

    I have the following code that drops a calendar value and 2 textbox values into a 3 cells on my spread sheet that then triggers an email to be sent if the total of the 3 values that are dropped is below a certain value, but what is happening is when the values get dropped rather than being...
  4. Belair58

    Loop through all WorkSheets is not working, code review please.

    Hello, I have a workbook with multiple sheets and I'd like to run this macro on all sheets. The code below will run on the first worksheet, but not on all. If anyone can see why it's not looping through all the sheets I'd appreciate it. <Code> Sub Add_On_Time_Or_Not_To_Each_Sheet() Dim ws As...
  5. K

    Copy and paste data from userform textboxes to worksheet

    Hello Everyone, Can someone kindly help meas I’m new to VBA. I have a userformthat contains a listbox with several lines of data. When the user double clicks on a row in thelistbox, it populates a series of textboxes below. Right now, I can’t seem to get the ADD bottomto work. What I’d like...
  6. J

    Trying to get rid of select

    Hello: I'm trying to get rid of select on the following bit of code. This works: Range(ActiveCell.End(xlToRight), ActiveCell.Offset(0, 7).End(xlDown)).Cut ActiveCell.End(xlToRight).Select ActiveSheet.Paste But when I try the following, I get Object Doesn't Support this property or method...
  7. S

    Referencing another Worksheet in VBA

    I was given this project to develop a form that by a click a button will send the answers to a separate table. It currently works. The user fills out the form in "Change Order Form (sheet1)" , when finished the submit button is clicked which then sends the responses a table in "Change Order Log...
  8. B

    userform - cell or column selection/reference

    I need help with this portion of my spreadsheet and userform and no better place than here to get it. I am wanting anytime any cell is selected in a given row (range myLEDGER, actually A19:AR71), a userform pops up (1st code). I figure I need to Offset back to A somehow and then Offset back...
  9. D

    Copy Pasting a lot of data using ActiveCell Offset

    Hi Below is some code I have. There's actually a lot of copying and pasting going on between workbooks (more than I show below). I would like to speed up the macro and was wondering is there better faster way to copy paste a number of cells on a worksheet that have been identified with a...
  10. R

    Recording a long formula is splitting it and destroying it

    Hi all, I'm trying to record a sumif with 6 different criteria pointing at different workbooks, when I record it, it seems to cut it after a point and replace a bunch of it with a " _ & " As a result, I think I fixed it with this but I still get application or object defined error...
  11. D

    Selection.FillDown Help

    I will start this off, I don't program at all, I have been recording and modifying code macros to help automate some things at work. I have this code that's not working when I run it: Columns("C:C").Select ActiveSheet.Range("$C$1:$C$817").AutoFilter Field:=3, Criteria1:="202*"...
  12. MFish

    Copy a certain range and paste to sheet2, next avail row.

    Hi, I'm lost on how to just simply copy a row from one sheet to another. I need it to copy to the other sheet that has an available empty row. Once that has been executed.. It will simply just delete the information on sheet1 after copying to sheet2. So far I have... Dim lastrow As Long...
  13. MFish

    How to find duplicates in two separate cells

    I have a code to check for a duplicate in column B7 and downward. I need to somehow configure it so it finds a duplicate in row B7-downward AND C7-downward. Here's the kicker... I need it to be like an "AND" function. It will be OK if the unique ID's are duplicated in column B as long as the...
  14. MFish

    Help with this please -

    Hi, I have a sheet that has a Userform that has textboxes/comboboxes/etc that will be my data input. I have a header for my "table" and they're simple lines that run Vertical. Once I input the information in the userform and hit submit, it already cycles to the next available line to add...
  15. R

    Populate Table from list box

    Hello, First off this is my first post, normally i can find my solutions but i can't quite figure it out this time, so sorry if this has already been asked. I'm designing a workbook where users can update the data through a userform. Currently the userform has a listbox that pulls from a...
  16. D

    Vertical connector with specific lenght

    Dear All, Here is the code for horizontal connector for an active cell where the connector displays at the middle of that cell. Its lenght is half of the previous cell + current cell + half of the next cell. Dante gave me kindly those lines of code. l = (ActiveCell.Offset(0, -1).Left +...
  17. I

    Wildcard String Search

    Hello, I would like to loop column j and if any part of the value in Q equals the string EXCHANGE, I want to concatenate the value in column k the Q, otherwise just put the string value in column q. My wildcard doesn't seem to work and even when the word EXCHANGE is in q and only entering the...
  18. W

    Wrong Number Of Arguments or invalid property assignment...Sometimes. Advice pls.

    Hello all. So I have some code that splits up a string and pastes certain parts of the string into certain columns. It works fine if you just run it from VBA editor. But it would be a nice touch if you added it to the right click mouse menu. I have some other code (not included) that works...
  19. D

    Copying range to another book in fixed range

    Hi I've one workbook that contains 31 sheets (1 for each day). I want macro to open source workbook and loop through each sheet and copy range H15:H28 and paste it in active (Target) workbook from B4. I've code that does the job. But I want some change. After pasting in 16 columns i.e. up to...
  20. VBE313

    This code takes 10 seconds to run

    Sub AddRowForNew() Dim rngstart As Range Dim rng As Range Dim col As Range Dim l As Long, strCells As String ActiveSheet.Unprotect Password:="B28" Application.ScreenUpdating = False Application.EnableEvents = False Set...

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