+ Reply to Thread
Results 1 to 3 of 3

help with code formatting

  1. #1
    Forum Contributor
    Join Date
    08-14-2013
    Location
    LA Baby!!
    MS-Off Ver
    Excel 2007
    Posts
    1,598

    help with code formatting

    Hello. Can someone please correct the code for me below (in terms of indenting, and effeciency) That is, if there are any ways the code could be written better, please let me know how and why? How do you organize all the dim stuff? Spreadsheet attached.

    Sub mellow()

    Please Login or Register  to view this content.
    Attached Files Attached Files

  2. #2
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: help with code formatting

    For help with indenting take a look at Smart Indenter.
    If posting code please use code tags, see here.

  3. #3
    Forum Expert daffodil11's Avatar
    Join Date
    07-11-2013
    Location
    Phoenixville, PA
    MS-Off Ver
    MS Office 2016
    Posts
    4,465

    Re: help with code formatting

    Adhering to some semblance of popular naming conventions helps you proof your own code down the road, and indentation makes it easier to follow.

    The more complex my code, the stricter I follow some of the basic guidelines.

    Please Login or Register  to view this content.
    The free VB Editor addin MZ tools has a few handy features as well.
    Last edited by daffodil11; 08-11-2015 at 06:50 PM.
    Make Mom proud: Add to my reputation if I helped out!

    Make the Moderators happy: Mark the Thread as Solved if your question was answered!

+ 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] Userform TextBox Problem... formatting code clears data instead of formatting
    By michaeljoeyeager in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-26-2012, 11:00 AM
  2. Zip code formatting
    By SRPitera in forum Excel General
    Replies: 6
    Last Post: 09-22-2009, 11:03 AM
  3. VBA code for Formatting
    By karch35 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-03-2007, 02:13 PM
  4. VB code for formatting
    By lostinformulas in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 11-06-2006, 09:20 PM
  5. Zip Code Formatting
    By JWCrosby in forum Excel - New Users/Basics
    Replies: 8
    Last Post: 07-01-2006, 08:55 AM
  6. Zip Code Formatting
    By weeshie73 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-26-2006, 01:15 PM
  7. [SOLVED] ZIP CODE FORMATTING
    By Victor Costello in forum Excel General
    Replies: 5
    Last Post: 10-16-2005, 12:05 AM
  8. [SOLVED] zip code formatting
    By MLD in forum Excel General
    Replies: 1
    Last Post: 08-19-2005, 11: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