+ Reply to Thread
Results 1 to 7 of 7

Recursive division Macro Mod needed for Char Type

  1. #1
    Registered User
    Join Date
    07-11-2008
    Location
    peru
    Posts
    27

    Recursive division Macro Mod needed for Char Type

    Hello,

    I need a slight mod to the below code which works perfectly otherwise. What it does is it divides whatever is in column K by 30 and puts in its relative cell in column M( There a bunch of mini tables below each other with blank rows in between). The thing is sometimes there are characters in column K like "N/A" for instance and the macro crashes since its only designed to take into account numerical and blank cells in column K. Any help in tweaking the below code is much appreciated..



    Please Login or Register  to view this content.
    Last edited by zeph2323; 11-12-2008 at 10:22 AM.

  2. #2
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    zeph2323,

    Please read forum rules below and amend you're title

    See if this helps. If it does remember to mark the thread as solved

    Please Login or Register  to view this content.
    VBA Noob
    Last edited by VBA Noob; 11-11-2008 at 04:02 PM.
    _________________________________________


    Credo Elvem ipsum etian vivere
    _________________________________________
    A message for cross posters

    Please remember to wrap code.

    Forum Rules

    Please add to your signature if you found this link helpful. Excel links !!!

  3. #3
    Registered User
    Join Date
    07-11-2008
    Location
    peru
    Posts
    27
    Hello,

    Thanks for the reply. I still get "Type Mismatch Error" when there is a character in column K, like "N/A" or "None" . I have attached a copy of the spreadsheet so you may see what I'm talking about better....In essence column M is dividing column K by 30 only when it needs to.


    Thanks again for any help given!

    p.s - how would I post a thread as solved? I can't seem to find the option for that. Thanks
    Attached Files Attached Files

  4. #4
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    Go to first post > click edit > advance > top right of toolbar you will see a dropdown

    Try

    Please Login or Register  to view this content.
    VBA Noob

  5. #5
    Registered User
    Join Date
    07-11-2008
    Location
    peru
    Posts
    27
    Hello,

    Thanks for all the help! The mod worked great..the only thing is "0.00" is showing up in between the min-tables in column M. Any way for these fields to be blank instead?

    Thanks again!

  6. #6
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    Think this works

    Please Login or Register  to view this content.
    VBA Noob

  7. #7
    Registered User
    Join Date
    07-11-2008
    Location
    peru
    Posts
    27
    Thank you!!! works Perfect =) KUDOS!!!!!!!!!!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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