+ Reply to Thread
Results 1 to 6 of 6

code dont read the line

  1. #1
    Registered User
    Join Date
    02-29-2012
    Location
    Copenhagen Denmark
    MS-Off Ver
    Excel 2007
    Posts
    17

    code dont read the line

    hey exp.

    i have taken over a macro from another, he is not in the company longer.
    the macro reads an ark from excel and then sending it to a program called. host on-demand.

    it is the dessinNr. if a number is only in 3 numbers it is to put 0 in front but this function don work, if the is under 5 number it joust stops ..

    Please Login or Register  to view this content.

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: code dont read the line

    I would think you could replace this:

    Please Login or Register  to view this content.
    With this:
    Please Login or Register  to view this content.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: code dont read the line

    Thanks for the feedback.

    If that takes care of your need, please select Thread Tools from menu above and set this topic to SOLVED.

  4. #4
    Registered User
    Join Date
    02-29-2012
    Location
    Copenhagen Denmark
    MS-Off Ver
    Excel 2007
    Posts
    17

    Re: code dont read the line

    hey it seems that this thing keeps on. i was thinking is the a way that i can put 0 in front of numbers in row R. but only if the is under 6 numbers the macro understands. from 6 and op therefore i was thinking, that if the was 0 in front from 6 and down that would be the solution ...

    i need some how to make this a part of the macro, so it will works automatically, when they pres play

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

  5. #5
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: code dont read the line

    I think you mean this:

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

  6. #6
    Registered User
    Join Date
    02-29-2012
    Location
    Copenhagen Denmark
    MS-Off Ver
    Excel 2007
    Posts
    17

    Re: code dont read the line

    hey it solved the problem, but the next one, is that the data that are transfer over. is no incorrect. therefore i was thinking is the a way to put, the 0 ind-front from 5 and down in the excel ark. and then use the original macro ?

+ 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