+ Reply to Thread
Results 1 to 5 of 5

How Can I Avoid Using .Select in VBA?

  1. #1
    Registered User
    Join Date
    09-06-2017
    Location
    portland, oregon
    MS-Off Ver
    2016
    Posts
    33

    How Can I Avoid Using .Select in VBA?

    I am using the below macro, how can i avoid using select? I have seen / heard that .Select is not good to use.

    Please Login or Register  to view this content.
    Attached Files Attached Files
    Last edited by jdcortez; 02-04-2019 at 10:35 PM.

  2. #2
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,316

    Re: How Can I Avoid Using .Select in VBA?

    Here's something good to read...

    http://www.tushar-mehta.com/excel/vb...acro_recorder/

    I didn't test this, but you should be able to...

    This...
    Please Login or Register  to view this content.
    To this...
    Please Login or Register  to view this content.
    Because of this...
    Please Login or Register  to view this content.
    I would say this is unnecessary...
    Please Login or Register  to view this content.
    But again, I have not tested this
    HTH
    Regards, Jeff

  3. #3
    Registered User
    Join Date
    09-06-2017
    Location
    portland, oregon
    MS-Off Ver
    2016
    Posts
    33

    Re: How Can I Avoid Using .Select in VBA?

    Unfortunately that did not work, I uploaded a copy of a sample WB with my macro so you can see what I am trying to achieve.

  4. #4
    Forum Expert
    Join Date
    04-01-2013
    Location
    East Auckland
    MS-Off Ver
    Excel 365
    Posts
    1,343

    Re: How Can I Avoid Using .Select in VBA?

    You seem to be asking the macro to work very hard to do something very simple.

    does this do what you want?

    Please Login or Register  to view this content.
    If you want something done right... find a forum and ask an online expert.

    Time flies like an arrow. Fruit flies like a banana.

  5. #5
    Registered User
    Join Date
    09-06-2017
    Location
    portland, oregon
    MS-Off Ver
    2016
    Posts
    33

    Re: How Can I Avoid Using .Select in VBA?

    I am laughing at how simple your effective solution is. Was overthinking it way too much! Thank you!!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. What to Avoid in VBA
    By pierre08 in forum Excel Programming / VBA / Macros
    Replies: 180
    Last Post: 03-03-2019, 03:31 PM
  2. How do avoid Select when coding TextBoxes
    By j_Southern in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-26-2018, 10:53 AM
  3. [SOLVED] How to avoid having to select same range twice?
    By Vonvorx in forum Excel General
    Replies: 4
    Last Post: 04-30-2016, 07:50 AM
  4. How to avoid #N/A.
    By bablubg in forum Excel General
    Replies: 6
    Last Post: 03-27-2014, 01:43 AM
  5. Avoid view jumping around with select and sort from macro
    By lemonstar in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-05-2012, 07:34 PM
  6. Can arrays be identified by i = X TO Y statements? (Avoid select Case)
    By macyarab in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-18-2009, 08:21 AM
  7. Avoid #!REF
    By gtorres in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-07-2007, 01:36 PM

Tags for this Thread

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