Results 1 to 4 of 4

Thread: BB codes with Excel 365

  1. #1
    Junior Member
    Join Date
    Sep 2019
    Posts
    2
    Rep Power
    0

    BB codes with Excel 365

    Hello guys
    This is my first time at this forum. I came here looking for a way to convert excel tables to BB code with colors.
    It is also worth saying that I have no experience what so ever with macros / vb / vba, just a very basic knowledge of Excel. With that said I am well versed in Java development.
    I came upon this thread: http://www.excelfox.com/forum/showth...7-BBCode-Table

    I have tried to use it with Excel 365 (latest version of it), I have enabled the Developer tab and added the keyword "PtrSafe" the the declarations of system functions, as per the instructions of the macro console (my system is 64 bit).
    I have created and saved a macro enabled excel table and put content in it, but I am getting two errors one after the other (get one, click OK, then get the other):
    Error 1: Could not unlock memory location. Copy aborted.
    Error 2: Could not close clipboard.

    Generally speaking my goal is easy creation of tables with colors for VBulletin 4.
    Can anyone help me with it? Do I need to run this on a 32 bit system?
    Any help will be appreciated

  2. #2
    Fuhrer, Vierte Reich DocAElstein's Avatar
    Join Date
    Aug 2014
    Posts
    9,313
    Rep Power
    10
    Hello Voigon
    Welcome to EXCELFOX
    I only have up to Office 2010, but I do know that there are a lot of quirky bugs and problems with anything to do with the clipboard above Office 2010.

    A better starting point for you might be to try out the BB Code generator in the add-in that you can get from Rory Archibold
    It is at a link given towards the bottom of this page at his Blog site: http://excelmatters.com/excel-forums/
    This is the link I think:
    https://www.dropbox.com/s/umis204g6e...ools.xlam?dl=0

    If you then still experience problems, then Rory would probably be the best person to try to get in touch with. (He does not post here, but you can find him most everywhere else, for example at MrExcel.com( https://www.mrexcel.com/forum/index.php ) or ExcelForum.com )

    Alan

    ( P.s. This file of mine here:
    https://www.excelforum.com/tips-and-...ml#post4642554
    https://app.box.com/file/33117103789
    https://app.box.com/s/zhz7awdag4nl1zs6564s9zzcwp50e4w9

    has a lot of BB code generating macros, including earlier versions of Rory's. (I have them as simple stand alone runable macros, rather than add-ins. To run them you just highlight the range you want , then run the main code. Your table, in BB Code form should then be in the clipboard)
    But I have no experience using any of those macros in anything above Excel 2010)
    Last edited by DocAElstein; 09-25-2019 at 11:20 AM.

  3. #3
    Junior Member
    Join Date
    Sep 2019
    Posts
    2
    Rep Power
    0
    Quote Originally Posted by DocAElstein View Post
    Hello Voigon
    Welcome to EXCELFOX
    I only have up to Office 2010, but I do know that there are a lot of quirky bugs and problems with anything to do with the clipboard above Office 2010.

    A better starting point for you might be to try out the BB Code generator in the add-in that you can get from Rory Archibold
    It is at a link given towards the bottom of this page at his Blog site: http://excelmatters.com/excel-forums/
    This is the link I think:
    https://www.dropbox.com/s/umis204g6e...ools.xlam?dl=0

    If you then still experience problems, then Rory would probably be the best person to try to get in touch with. (He does not post here, but you can find him most everywhere else, for example at MrExcel.com( https://www.mrexcel.com/forum/index.php ) or ExcelForum.com )

    Alan

    ( P.s. This file of mine here:
    https://www.excelforum.com/tips-and-...ml#post4642554
    https://app.box.com/file/33117103789
    https://app.box.com/s/zhz7awdag4nl1zs6564s9zzcwp50e4w9

    has a lot of BB code generating macros, including earlier versions of Rory's. (I have them as simple stand alone runable macros, rather than add-ins. To run them you just highlight the range you want , then run the main code. Your table, in BB Code form should then be in the clipboard)
    But I have no experience using any of those macros in anything above Excel 2010)

    Hello,
    First of all thank for for the response! It is very appreciated.
    I am now running Office 2010, and indeed the clipboard seems to work. However, I ran into a problem: Using Hebrew characters would output `?` in the BB Code, Do you have any lead for me as to how to solve this issue?

  4. #4
    Fuhrer, Vierte Reich DocAElstein's Avatar
    Join Date
    Aug 2014
    Posts
    9,313
    Rep Power
    10
    Quote Originally Posted by Voigon View Post
    ....., I ran into a problem: Using Hebrew characters would output `?` in the BB Code, Do you have any lead for me as to how to solve this issue?
    Hello Voigon,

    An interesting question , but I doubt that I can give much more than some general comments on this one… not yet anyway..

    I am not fully familiar with the various BB-Code-generating coding which I referred to, as I have only made minor modifications to them. I was not involved in any of the original writings of the coding.
    But it does not surprise me that you hit the "???" output type problem.

    My guess is that VBA only supports English stuff mostly, for example, such that text strings held are somehow held in terms of strings of English characters. I am not sure of the exact process. But I have often seen , that characters which are not English, are usually held and shown in VBA held strings as ?s

    However, I am glad you brought this up, as I do intend finally getting around late this year to writing my own BB Code generating macro, possibly as an Add-In , if I can figure out how to do that. I will certainly consider this aspect. I will make a note to post a follow up here..

    As far as I know, there are no coding available that will allow you to get a BB Code which has other language text preserved. I am not even sure yet if it is at all possible.


    I have not really thought too much yet about how I would tackle this problem yet.
    But I guess my start point will be to remind myself of some of the work I did for this Thread:
    http://www.excelfox.com/forum/showth...ts-of-a-string
    Then I will google a bit , and read things like this,
    https://answers.microsoft.com/en-us/...6-95af5f29e324 ,


    My initial approach will probably be then to see if I can record what is in a cell in terms of a breakdown of its characters , ( rather than the simple cell.Value type approach , which takes a complete string into VBA , and most likely results in the "???" held for non English characters. )
    I don't know at this stage if this approach will be successful.


    So, I am afraid I can not be too much help just now on this one.
    I will post again if I get anywhere later on this when writing my own BB Code generator later this year.
    Please let us know if you make further progress
    Good luck

    Alan
    Last edited by DocAElstein; 10-10-2019 at 01:59 AM.

Similar Threads

  1. Replies: 184
    Last Post: 03-16-2024, 01:16 PM
  2. Search List of my codes
    By PcMax in forum Excel Help
    Replies: 6
    Last Post: 08-03-2014, 08:38 AM
  3. Is this codes be translated into Excel?
    By mrprofit in forum Excel Help
    Replies: 1
    Last Post: 04-11-2014, 11:49 PM
  4. Replies: 4
    Last Post: 07-29-2013, 08:25 AM
  5. Correlation Map with color codes
    By Rasm in forum Excel Help
    Replies: 5
    Last Post: 12-04-2011, 08:28 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
  •