Results 1 to 7 of 7

Removing Select statement to run code faster

Threaded View

  1. #1
    Registered User
    Join Date
    05-21-2014
    Posts
    32

    Removing Select statement to run code faster

    Hi,

    I have few queries,

    • I want to repeat this code for all sheets but without select statement it doesn't work, Is there any way to remove select statement here?

    For j = 1 To 4
    Sheets(j).Select
    Range("AB29:AG" & Sheets(j).Cells(Rows.Count, "AG").End(xlUp).Row).ClearContents
    next i
    • I would like to couple the last 2 statements in to one. please help.
    Range("AF29:AG29").Copy
    Range("AF29:AG" & Sheets(j).Cells(Rows.Count, "AB").End(xlUp).Row).Select
    ActiveSheet.Paste
    • Please see the attached file. I want to find the first row which contains 0 value. In this case it should return '5'.
    Attached Files Attached Files
    Last edited by wincross; 08-18-2017 at 09:59 AM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Faster/Cleaner way to Write IF OR Statement?
    By ExcelDavid in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 01-21-2016, 01:18 PM
  2. improving code by removing select
    By Zealotwraith in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-31-2013, 04:13 PM
  3. code to replace 'Rows("31:31").Select' statement with variables
    By Ed_Collins in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-17-2012, 06:28 PM
  4. Select Case code not returning correct statement
    By BCITgirl in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 11-19-2010, 01:15 AM
  5. Removing .Select to Improve Code Efficiency
    By Mordred in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-25-2010, 01:47 AM
  6. Code Procedure Problem: Exiting Select Statement
    By max57 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 05-05-2010, 12:21 AM
  7. [SOLVED] VBA | Individual Iterations faster than Loop Statement
    By Butaambala in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 07-03-2005, 08:05 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1