+ Reply to Thread
Results 1 to 2 of 2

Tidying up VBA code

  1. #1
    Registered User
    Join Date
    10-31-2013
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    2

    Tidying up VBA code

    Hello,

    I've made a vba which when run copys cell values from a specific row on the 'Data' sheet to various cells in a 'process' sheet.

    It does the job, but doesn't seem like the most efficent way to do it - can anyone suggest a way to do the same thing better?

    (M2 on the Process sheet contains the row number to look for on the data sheet.)

    Please Login or Register  to view this content.
    Thanks!

  2. #2
    Registered User
    Join Date
    10-31-2013
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: Tidying up VBA code

    Ok, I've removed the unnecessary use of the Index function as I already knew both the column and row - duh!

    Here is my revised version:

    Please Login or Register  to view this content.
    It's fast, but not instant, which makes me think its doing more work than it needs to in the background.

+ 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. [SOLVED] Can anyone advise on tidying up code?
    By whitieklf in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 09-30-2013, 09:55 AM
  2. tidying up code
    By tryer in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-14-2011, 10:03 AM
  3. code tidying
    By stevesunfold in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 12-26-2008, 05:23 PM
  4. Tidying/ Simplifying Code
    By bomberchia in forum Excel General
    Replies: 6
    Last Post: 11-29-2008, 06:16 AM
  5. [SOLVED] Help with tidying up code please
    By Andy in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-10-2005, 01:00 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