cells.select

  1. N

    Cut and Paste Filtered Rows

    I have some code that is filtered on a column, copying the visible rows, going to a new sheet, and pasting the code down. It works, but its incredibly slow, is there a faster way to generate this block of code? Selection.AutoFilter ActiveSheet.Range("A:J").AutoFilter Field:=3...
  2. N

    Speed Up My Code

    Hi guys- I am running this code on a document with ~ 25,000 rows by66 columns wide. This code right now is taking around 45 seconds to 55 seconds to run, and sometimes I get the (not responding) and it takes over a minute. I was wondering what steps in my code could be adjusted to run faster...
  3. L

    VBA Faster Way to copy filtered contents to a new sheet

    Hello, I have been told to many Select and copy and paste commands can slow down my code. What would be a faster way of doing this? - It is copying the filtered results to a new Sheet called filtered. Sub Filtered() ' '~~~~ This macro adds the filtered sheet to begin the report process '...
  4. E

    Date validation in VBA

    Hi Team, I have recorded below macro i want to select previous day date and delete all the records but the date remains same when the macro was recorded, Please could you help me with the code to delete previous day records in column X1 and their associated rows Thanks...
  5. N

    Vba - trim

    I am trying to use VBA to trim and clean up all data on a worksheet. I would like to remove leading, trailing, and any extra intral spaces. Below is the code that I am trying to use, but it will not work. I am using cells.select to select all data on the worksheet. If I remove that line and...
  6. M

    How to edit Macro to ensure print area and streamline

    I have been growing more and more comfortable with Excel in my new position and really enjoy learning how to work more efficiently with it. Recently I have been filling in for someone on long term disability and I have to extract data from AVANTIS to an existing Macro every week that we use to...
  7. K

    How to re-use code in several other sub's

    I've got around 50 wb's I'm currently updating using vba. But It'a a drag writing (and updating) the same code 50 times, so I'm trying to come up with a way to re-use code. The code below got a lot of unnecessary code (Activate, Select), but I can change that later. What's important is if what...
  8. J

    2 Questions Regarding Macro Debug: 1. Hyperlink Debug and 2. Add/Delete Page In Macro, deleting sequence

    Here are my two issues: 1. I am having a hard time figuring out this "Debug." I copy and pasted the code below. It has two do with an image I inserted in the Macro then hyperlinked it to a website 2. I added a sheet by mistake then deleted it. Every time I run the Macro it pops up "Are you sure...
  9. K

    Help on best method to copy paste from one wb to another wb

    The code below is run from ThisWorkbook. It opens another 4 wb's (Gr1.xlsm, Report1.xls, Report2.xls and Report3.xls), and copies data from wb Report 1-3 into 3 different sheets in wb Gr1. Vba works, but I'm looking for a better way of writing it. One issue is to avoid as much use of .activate...
  10. D

    Run Time Error 9. Debugging

    Hi again all, I currently have 4 seperate reports going into 1 main report to give me information i need, i have started doing a macro but this once error shows and im not sure what i can do to solve it. its quite a big sheet.... the debug is highlighted in red. Sub Macro4() ' ' Macro4...
  11. JTL9161

    Simple Run Time

    I've been working on this macro most of day and when I finally get it basically work towards the end I get a run-time error 424 "Object Req." when I am selecting the entire work sheet (cells.select) before I do a replace. I must be missing something simple because I can't figure what DIM for...
  12. W

    VBA not completing the whole function and no error message is shown

    Hi All, I'm trying to run the below macro (recorded) however it stops before it gets to "Rows("1:8").Select" It also paste special values columns AF & AG which I don't want it to do. I've been trying for hours and almost given up hope! Any help is greatly appreciated. Thanks, Wes...
  13. B

    Copy text formatting (not cell formatting) to vba script

    Hi Currently using the following vba to copy from one workbook to another, however, this copies with no text formatting. Some of the text is grey, red or blue and I need to copy that over. But not copying the cell Fill format. Had a search with no luck. Help appreciated. Sub...

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