+ Reply to Thread
Results 1 to 3 of 3

New to VBA need help with simplifying code.

  1. #1
    Registered User
    Join Date
    09-24-2014
    Location
    FL, USA
    MS-Off Ver
    Office 2010
    Posts
    18

    New to VBA need help with simplifying code.

    I am new to VBA and have written a code to basically go through a column of data and based on the contents fill another column with abbreviations. I was wondering if there was a simpler method of doing this same task. Also, on the last line I filled in the values using the offset function, but I would really prefer to have it set to column W; I just didn't know how to make it cycle through in that way. Any help or suggestions would be appreciated. Thank you.

    Please Login or Register  to view this content.

  2. #2
    Valued Forum Contributor
    Join Date
    09-21-2011
    Location
    Birmingham UK
    MS-Off Ver
    Excel 2003/7/10
    Posts
    2,188

    Re: New to VBA need help with simplifying code.

    range("W" & rng.row).value =enclosure

    You could copy M to W then do 7 find and replaces on column W.

    They way you have it is the way i'd tackle it though, looking at it. You could turn calculation off and on again at the end, which may help.
    Hope this helps

    Sometimes its best to start at the beginning and learn VBA & Excel.

    Please dont ask me to do your work for you, I learnt from Reading books, Recording, F1 and Google and like having all of this knowledge in my head for the next time i wish to do it, or wish to tweak it.
    Available for remote consultancy work PM me

  3. #3
    Registered User
    Join Date
    09-24-2014
    Location
    FL, USA
    MS-Off Ver
    Office 2010
    Posts
    18

    Re: New to VBA need help with simplifying code.

    Thank you for the quick response. That worked great.

+ 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. Need help simplifying a code Please
    By Lostinexcel2002 in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 12-10-2008, 07:54 PM
  2. Simplifying the Code
    By marino72 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-28-2008, 06:40 PM
  3. Simplifying the code
    By walid66 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 03-20-2008, 07:53 PM
  4. Simplifying code
    By T De Villiers in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-23-2007, 06:50 AM
  5. Simplifying VB code
    By odggi in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 09-30-2006, 07:09 AM

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