Results 1 to 10 of 40

Thread: test BB Code

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #32
    Fuhrer, Vierte Reich DocAElstein's Avatar
    Join Date
    Aug 2014
    Posts
    9,385
    Rep Power
    10

    Get the white stuff out of horizontal in Rory's Tool

    I often hit the post size character limit.
    So every bit of saving of character usage is helpful to me
    I often use Rory's Screenshot Tool.
    I noticed it had a bit that for every row defined the background colour as white.
    I took it out and it seems to have no effect on final output.
    So that little change saves a bit of character space for me.
    So:-
    Taking out the “white background color”.
    This is the default background row color, I think. It seems to come out at white anyway, so I took out the explicit “making it white bit”. In long deep tables that will save quite a few characters in the BB Code.
    I did this, ‘cos I could
    So I did this simple Mod in the Private Function RngToBBC in the mBBCode Normal Code Module, (Basically I just edited out the bit in shown in red)
    Code:
                'sOut = sOut & vbNewLine & "[tr=bgcolor:" & csROW_BACK & "]"
                sOut = sOut & vbNewLine & "[tr]" 'Remove white background for entire row
                If bHdr Then sOut = sOut & "[td=bgcolor:" & csHEADER_BACK & "]
    [COLOR=" & csHEADER_COLOR & "]" & rRow.Row & "[/COLOR]
    [/td]"
    So it used to produce this:
    [color=lightgrey]Using Excel 2007 32 bit[/color]
    [size=0][Table="width:, class:head"][tr=bgcolor:skyblue][th][COLOR=black][sub]Row[/sub]\[sup]Col[/sup][/COLOR][/th][th][CENTER][COLOR=black]J[/COLOR][/CENTER][/th][/tr]
    [tr=bgcolor:#FFFFFF][td=bgcolor:skyblue][CENTER][COLOR=black][b]35[/b][/COLOR][/CENTER][/td][td][/td][/tr]
    [/table][/size][size=0][color=lightgrey]Worksheet: [/color][b][color=darkblue]Intercepts[/b][/color][/size]
    Using Excel 2007 32 bit
    Row\Col
    J
    35
    Worksheet: Intercepts

    After the small code mod I get this:
    [color=lightgrey]Using Excel 2007 32 bit[/color]
    [size=0][Table="width:, class:head"][tr=bgcolor:skyblue][th][COLOR=black][sub]Row[/sub]\[sup]Col[/sup][/COLOR][/th][th][CENTER][COLOR=black]F[/COLOR][/CENTER][/th][/tr]
    [tr][td=bgcolor:skyblue][CENTER][COLOR=black][b]32[/b][/COLOR][/CENTER][/td][td][/td][/tr]
    [/table][/size][size=0][color=lightgrey]Worksheet: [/color][b][color=darkblue]Intercepts[/b][/color][/size]
    Using Excel 2007 32 bit
    Row\Col
    F
    32
    Worksheet: Intercepts

    This remains a jolly spiffing super Tool in my opinion. I have erected it in more places and more times than I care to remember. It really is the Doggies best
    http://www.excelforum.com/showthread...=3#post4573121
    http://www.excelfox.com/forum/showth...0055#post10055
    http://excelmatters.com/excel-forums/#comment-199330
    Last edited by DocAElstein; 02-01-2017 at 03:38 PM. Reason: Added links
    ….If you are my competitor, I will try all I can to beat you. But if I do, I will not belittle you. I will Salute you, because without you, I am nothing.
    If you are my enemy, we will try to kick the fucking shit out of you…..
    Winston Churchill, 1939
    Save your Forum..._
    _...KILL A MODERATOR!!

Similar Threads

  1. Replies: 12
    Last Post: 09-22-2023, 03:53 PM
  2. Replies: 5
    Last Post: 06-10-2019, 10:14 PM
  3. HTML Code Test --post8798
    By DocAElstein in forum Test Area
    Replies: 19
    Last Post: 06-17-2018, 03:02 PM
  4. CODE TAG Code Test
    By DocAElstein in forum Test Area
    Replies: 5
    Last Post: 09-16-2015, 05:16 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •