+ Reply to Thread
Results 1 to 6 of 6

Macro to see 0 as Blank

  1. #1
    Registered User
    Join Date
    12-18-2008
    Location
    Rochester, NY
    Posts
    15

    Macro to see 0 as Blank

    Hello,

    I have a semi-complex macro file devloped for a function or our AS/400 system.

    I have been asked to modify the macro the run a field as a blank, which I never planned for in my orginal design and now I can't figure out how to had it in...

    I'm going to provide the primary file so that someone can maybe take a look and give me an idea.

    The main tab titled Lean% references over to the macro tabs titled Macro Static and Macro Flow. (Colum C is my main reference point)

    For example line 59 in the Macro Static tab is set to ref ='Lean %''s'!$C$16 if the ref turns out to me a 0 I need it to leave a blank, and just going on to the next line in the macro.

    Thanks,
    Rob
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor tony h's Avatar
    Join Date
    03-14-2005
    Location
    England: London and Lincolnshire
    Posts
    1,187

    Re: Trying to get Macro to see 0 as Blank!

    This is for the formula in C16 on sheet lean%

    ="autECLSession.autECLPS.SendKeys " & CHAR(34) & IF(B16=0,"",TEXT(100*B16, "00")) & CHAR(34)

    But you could use the IF(...) in a variety of places.

    This will send the equivalent of a <ENTER> key


    click on the * Add Reputation if this was useful or entertaining.

  3. #3
    Registered User
    Join Date
    12-18-2008
    Location
    Rochester, NY
    Posts
    15

    Re: Macro to see 0 as Blank

    Is there a way to have it send a <Tab> command?

    <Enter> creates an error....

  4. #4
    Valued Forum Contributor tony h's Avatar
    Join Date
    03-14-2005
    Location
    England: London and Lincolnshire
    Posts
    1,187

    Re: Macro to see 0 as Blank

    CHAR(9) is tab

  5. #5
    Registered User
    Join Date
    12-18-2008
    Location
    Rochester, NY
    Posts
    15

    Re: Macro to see 0 as Blank

    How does that fit into the formula...I'm not good with if statements!

    Thanks for the help!
    Rob

  6. #6
    Registered User
    Join Date
    12-18-2008
    Location
    Rochester, NY
    Posts
    15

    Re: Macro to see 0 as Blank

    I got it!

    Thanks,
    Rob

+ 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