+ Reply to Thread
Results 1 to 37 of 37

Rolling text in a cell

  1. #1
    Registered User
    Join Date
    02-06-2017
    Location
    Netherlands
    MS-Off Ver
    MS Office 2010,2016
    Posts
    11

    Rolling text in a cell

    I have searched already via Google and I did find the following but it was not working.

    MID(A1&REPT(" ",CELL("Width",A2)),MIN(1,MOD(SECOND(NOW()),(LEN(A1&REPT(" ",CELL("Width",A2)))))),CELL("Width",A2))

    What did I wrong.

    Also try it with this macro but then I can use any other macro to continue:

    Please Login or Register  to view this content.
    Can some help me further .
    Last edited by AliGW; 02-06-2017 at 09:53 AM.
    Greeting JanDoelie

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2509 (Windows 11 Home 24H2 64-bit)
    Posts
    92,634

    Re: Rolling text in a cell

    Your post does not comply with Rule 3 of our Forum RULES. Use code tags around code.

    Posting code between [CODE]Please [url=https://www.excelforum.com/login.php]Login or Register [/url] to view this content.[/CODE] tags makes your code much easier to read and copy for testing, it also maintains VBA formatting.

    Click on Edit to open your thread, then highlight your code and click the # icon at the top of your post window. More information about these and other tags can be found here

    I have made the correction in your post for you this time, as a courtesy. Please remember in your future posts. This has merely been a harmless warning to underline the importance that you read and follow the Forum Rules we are all expected to abide. Thank you for your understanding and compliance.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help. It's a universal courtesy.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    NB:
    as a Moderator, I never accept friendship requests.
    Forum Rules (updated August 2023): please read them here.

  3. #3
    Forum Expert Keebellah's Avatar
    Join Date
    01-12-2014
    Location
    The Netherlands
    MS-Off Ver
    Office 2021 (Windows)
    Posts
    7,937

    Re: Rolling text in a cell

    The problem you are encountering is that no macro will run because every second the DoMarquee is triggered.
    Als, if you do not 'unschedule' it correctly it will not stop, you may even have problems closing Excel.

    My idea would be to just invoke DoMarquee in the macros you are running.

    P.S. Don't literally translate Dutch into English, it makes no sense.
    ---
    Hans
    "IT" Always crosses your path!
    May the (vba) code be with you... if it isn't; start debugging!
    If you like my answer, Click the * below to say thank-you

  4. #4
    Valued Forum Contributor
    Join Date
    03-24-2014
    Location
    England
    MS-Off Ver
    Excel 2003 - 2016
    Posts
    575

    Re: Rolling text in a cell

    Neither does Dutch before it's translated mate.

  5. #5
    Forum Expert Keebellah's Avatar
    Join Date
    01-12-2014
    Location
    The Netherlands
    MS-Off Ver
    Office 2021 (Windows)
    Posts
    7,937

    Re: Rolling text in a cell

    I agree, a Mexican one told me that Duth is not a language it is a throat desease

  6. #6
    Forum Expert Keebellah's Avatar
    Join Date
    01-12-2014
    Location
    The Netherlands
    MS-Off Ver
    Office 2021 (Windows)
    Posts
    7,937

    Re: Rolling text in a cell

    BTW Dutch can't be that difficult, most of the children speak it here

  7. #7
    Forum Expert Arkadi's Avatar
    Join Date
    02-13-2014
    Location
    Smiths Falls, Ontario, Canada
    MS-Off Ver
    Office 365
    Posts
    5,059

    Re: Rolling text in a cell

    BellyGas, as a Dutchman all I can say is Ouch! (you are not wrong though...LOL)
    Please help by:

    Marking threads as closed once your issue is resolved. How? The Thread Tools at the top
    Any reputation (*) points appreciated. Not just by me, but by all those helping, so if you found someone's input useful, please take a second to click the * at the bottom left to let them know

    There are 10 kinds of people in this world... those who understand binary, and those who don't.

  8. #8
    Forum Expert Keebellah's Avatar
    Join Date
    01-12-2014
    Location
    The Netherlands
    MS-Off Ver
    Office 2021 (Windows)
    Posts
    7,937

    Re: Rolling text in a cell

    We can shake hands

  9. #9
    Forum Expert Arkadi's Avatar
    Join Date
    02-13-2014
    Location
    Smiths Falls, Ontario, Canada
    MS-Off Ver
    Office 365
    Posts
    5,059

    Re: Rolling text in a cell

    @ Keebellah... yes if you have very long arms

  10. #10
    Registered User
    Join Date
    02-06-2017
    Location
    Netherlands
    MS-Off Ver
    MS Office 2010,2016
    Posts
    11

    Re: Rolling text in a cell

    I'm new in this please give me a example how to do it correctly!

  11. #11
    Valued Forum Contributor
    Join Date
    03-24-2014
    Location
    England
    MS-Off Ver
    Excel 2003 - 2016
    Posts
    575

    Re: Rolling text in a cell

    What, speak Dutch? Sorry, can't. There is no way to speak it correctly.

    This isn't helping is it? Ok, I'll be quiet...

  12. #12
    Registered User
    Join Date
    02-06-2017
    Location
    Netherlands
    MS-Off Ver
    MS Office 2010,2016
    Posts
    11

    Re: Rolling text in a cell

    I woud like to run it as a kind of advertising which is rolling in a certain cell, during a game of biljart.
    Maybe you have a other solution.

    Be a ware I complete new, give me some credits.

  13. #13
    Valued Forum Contributor
    Join Date
    03-24-2014
    Location
    England
    MS-Off Ver
    Excel 2003 - 2016
    Posts
    575

    Re: Rolling text in a cell

    Ya know.....I think the easiest way to do this would be create yourself an animated .gif with scrolling text and then just add that to the worksheet as an image. Unless the text needs to be dynamic....

  14. #14
    Registered User
    Join Date
    02-06-2017
    Location
    Netherlands
    MS-Off Ver
    MS Office 2010,2016
    Posts
    11

    Re: Rolling text in a cell

    But how do I do it???

  15. #15
    Valued Forum Contributor
    Join Date
    03-24-2014
    Location
    England
    MS-Off Ver
    Excel 2003 - 2016
    Posts
    575

    Re: Rolling text in a cell

    Google 'animation shop'. Last time I used it was 1998 so chances are there's a freeware version by now.

  16. #16
    Forum Expert Logit's Avatar
    Join Date
    12-23-2012
    Location
    North Carolina
    MS-Off Ver
    Excel 2019 Professional Plus - 2007 Enterprise
    Posts
    7,485

    Re: Rolling text in a cell

    Here is another approach that might be of interest. (I haven't tested any of the code). Sounds like it is reeeeeel close to what the OP is seeking.

    http://www.vbaexpress.com/forum/arch...hp/t-5840.html

  17. #17
    Valued Forum Contributor
    Join Date
    03-24-2014
    Location
    England
    MS-Off Ver
    Excel 2003 - 2016
    Posts
    575

    Re: Rolling text in a cell

    Ok, I just googled what 'biljart' is.....so no, the text doesn't need to be dynamic and no other macro's need to run at the same time as this. So:

    Please Login or Register  to view this content.

    Change "A1" to change the cell this displays in.
    Change the value after 'Sleep' to change the speed at which it scrolls.
    Change the 10 in the Mid$ line to alter the amount of text it displays at once.

    And to stop it, use CTRL-BREAK.


    EDIT: Doh! It's spelt 'kernel', not 'kernal'.
    Last edited by BellyGas; 02-06-2017 at 01:18 PM.

  18. #18
    Registered User
    Join Date
    02-06-2017
    Location
    Netherlands
    MS-Off Ver
    MS Office 2010,2016
    Posts
    11

    Re: Rolling text in a cell

    Sorry it will help any futher.

  19. #19
    Forum Expert Logit's Avatar
    Join Date
    12-23-2012
    Location
    North Carolina
    MS-Off Ver
    Excel 2019 Professional Plus - 2007 Enterprise
    Posts
    7,485

    Re: Rolling text in a cell

    BellyGas

    Your macro works but nothing else can be done while it is running. I tried inserting DoEvents but no change.

    I wonder if a UserForm, sized down and made ShowModal = False might be a workaround ? Haven't tried it .

  20. #20
    Registered User
    Join Date
    02-06-2017
    Location
    Netherlands
    MS-Off Ver
    MS Office 2010,2016
    Posts
    11

    Re: Rolling text in a cell

    It seems no one can help me. I'm not a expert in VBA I would like to learn more. Examples will help me.

  21. #21
    Forum Expert Arkadi's Avatar
    Join Date
    02-13-2014
    Location
    Smiths Falls, Ontario, Canada
    MS-Off Ver
    Office 365
    Posts
    5,059

    Re: Rolling text in a cell

    quick google for "create animated gif marquee" will bring lots of options I think...

    maybe this one?

  22. #22
    Valued Forum Contributor
    Join Date
    03-24-2014
    Location
    England
    MS-Off Ver
    Excel 2003 - 2016
    Posts
    575

    Re: Rolling text in a cell

    Quote Originally Posted by Logit View Post
    BellyGas

    Your macro works but nothing else can be done while it is running. I tried inserting DoEvents but no change.
    Well, as far as I understand it, the OP doesn't need to do anything while this text is scrolling. It's purely to run a scrolling advertising banner during a game of snooker. If other things need to run then it's animated .gif time, if not then job done.
    Last edited by BellyGas; 02-07-2017 at 04:39 AM.

  23. #23
    Registered User
    Join Date
    02-06-2017
    Location
    Netherlands
    MS-Off Ver
    MS Office 2010,2016
    Posts
    11

    Re: Rolling text in a cell

    Arkadi,

    Thanks, this will help but how can I load the *.gif file in my excel??

  24. #24
    Valued Forum Contributor
    Join Date
    03-24-2014
    Location
    England
    MS-Off Ver
    Excel 2003 - 2016
    Posts
    575

    Re: Rolling text in a cell

    insert picture.

  25. #25
    Forum Expert Keebellah's Avatar
    Join Date
    01-12-2014
    Location
    The Netherlands
    MS-Off Ver
    Office 2021 (Windows)
    Posts
    7,937

    Re: Rolling text in a cell

    Is this game in Excel?
    You could use a IE to do something in a small window using a vb script

  26. #26
    Forum Expert Keebellah's Avatar
    Join Date
    01-12-2014
    Location
    The Netherlands
    MS-Off Ver
    Office 2021 (Windows)
    Posts
    7,937

    Re: Rolling text in a cell

    You could even populate from an Excel file to make it dynamic

  27. #27
    Registered User
    Join Date
    02-06-2017
    Location
    Netherlands
    MS-Off Ver
    MS Office 2010,2016
    Posts
    11

    Re: Rolling text in a cell

    Thanks,
    But I want to make it visible via a macro because we have some different sponsor for the teams.

  28. #28
    Registered User
    Join Date
    02-06-2017
    Location
    Netherlands
    MS-Off Ver
    MS Office 2010,2016
    Posts
    11

    Re: Rolling text in a cell

    What do mean with populate, can you give me a example?

  29. #29
    Forum Expert Keebellah's Avatar
    Join Date
    01-12-2014
    Location
    The Netherlands
    MS-Off Ver
    Office 2021 (Windows)
    Posts
    7,937

    Re: Rolling text in a cell

    Populate: to fill the text

  30. #30
    Forum Expert Logit's Avatar
    Join Date
    12-23-2012
    Location
    North Carolina
    MS-Off Ver
    Excel 2019 Professional Plus - 2007 Enterprise
    Posts
    7,485

    Re: Rolling text in a cell

    Located some working examples that will assist you:

    One of the projects ...
    Paste this into a routine module :

    Please Login or Register  to view this content.
    Paste this into the Sheet level module:

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

  31. #31
    Registered User
    Join Date
    02-06-2017
    Location
    Netherlands
    MS-Off Ver
    MS Office 2010,2016
    Posts
    11

    Re: Rolling text in a cell

    Thanks, but one problem I can download the files. He given me attachment.php for saving.

  32. #32
    Forum Expert MickG's Avatar
    Join Date
    11-23-2007
    Location
    Banbury,Oxfordshire
    Posts
    2,650

    Re: Rolling text in a cell

    Not Quite Scrolling , But a possibility !!!
    Please Login or Register  to view this content.

    More Like Scrolling !!!!

    Please Login or Register  to view this content.
    Regards Mick
    Last edited by MickG; 02-08-2017 at 10:06 AM.

  33. #33
    Forum Expert Keebellah's Avatar
    Join Date
    01-12-2014
    Location
    The Netherlands
    MS-Off Ver
    Office 2021 (Windows)
    Posts
    7,937

    Re: Rolling text in a cell

    I think you should read here and see if you can work with it.
    http://excelribbon.tips.net/T011031_...s_Running.html

  34. #34
    Forum Expert Keebellah's Avatar
    Join Date
    01-12-2014
    Location
    The Netherlands
    MS-Off Ver
    Office 2021 (Windows)
    Posts
    7,937

    Re: Rolling text in a cell

    I think you should read here and see if you can work with it.
    http://excelribbon.tips.net/T011031_...s_Running.html

  35. #35
    Forum Expert Logit's Avatar
    Join Date
    12-23-2012
    Location
    North Carolina
    MS-Off Ver
    Excel 2019 Professional Plus - 2007 Enterprise
    Posts
    7,485

    Re: Rolling text in a cell

    Jan:

    Others have downloaded the files then changed the extension to .xls or .xlsx, etc.

    But, let's circumvent all of that. Here is a link you can download the files in a zip file.

    https://www.amazon.com/clouddrive/sh...hare_link_copy


    A few hours later ... if the FORUM is working again, here is the zip file:
    Attached Files Attached Files
    Last edited by Logit; 02-08-2017 at 12:59 PM.

  36. #36
    Registered User
    Join Date
    02-06-2017
    Location
    Netherlands
    MS-Off Ver
    MS Office 2010,2016
    Posts
    11

    Re: Rolling text in a cell

    Hi Logit this is what I was looking for thanks for your help.

  37. #37
    Forum Expert Keebellah's Avatar
    Join Date
    01-12-2014
    Location
    The Netherlands
    MS-Off Ver
    Office 2021 (Windows)
    Posts
    7,937

    Re: Rolling text in a cell

    I like this, especially the show in userform.
    One thing, if you set ShowModal to False it still works and you can continue typing in Excel and move around all you want.
    You do however need to unload the form of else it stays on.

  38. #38
    Forum Expert Keebellah's Avatar
    Join Date
    01-12-2014
    Location
    The Netherlands
    MS-Off Ver
    Office 2021 (Windows)
    Posts
    7,937

    Re: Rolling text in a cell

    Minor modifications to the excel file in userform
    Attached Files Attached Files

  39. #39
    Forum Expert Keebellah's Avatar
    Join Date
    01-12-2014
    Location
    The Netherlands
    MS-Off Ver
    Office 2021 (Windows)
    Posts
    7,937

    Re: Rolling text in a cell

    There was more to it. The userform doesn't fully unload so I added some code to make sure that when you close the form the code is actually unloaded.

    Now you can do more with it. Imagination is the limit
    Attached Files Attached Files

  40. #40
    Forum Expert Keebellah's Avatar
    Join Date
    01-12-2014
    Location
    The Netherlands
    MS-Off Ver
    Office 2021 (Windows)
    Posts
    7,937

    Re: Rolling text in a cell

    And the final one (just for fun)

    Just click the form to show the section where the buttons are to manipulate the marquee
    Attached Images Attached Images
    Attached Files Attached Files

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Count for rolling 30 days of specific text
    By XTERM1NADOR in forum Excel General
    Replies: 16
    Last Post: 01-28-2015, 12:56 PM
  2. [SOLVED] Find a value in a column and count text using a rolling date range
    By JonesyCC in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 09-13-2013, 11:39 AM
  3. [SOLVED] How to change cell value based on 12 months rolling date on other cell
    By buznac in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 08-31-2013, 07:30 PM
  4. Replies: 4
    Last Post: 07-03-2013, 01:34 AM
  5. Creating a rolling percentage based on a text field
    By reynastus in forum Excel General
    Replies: 1
    Last Post: 04-16-2010, 07:45 PM
  6. Thumbnail image when rolling over text
    By mwilson15 in forum Excel General
    Replies: 3
    Last Post: 04-06-2010, 11:26 AM
  7. [SOLVED] Z Chart i.e. top rolling annual bottom rolling monthly middle ***.
    By wat prin in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 01-28-2005, 02:06 PM

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