+ Reply to Thread
Results 1 to 8 of 8

(Macro?) to add text at a certain point

  1. #1
    Registered User
    Join Date
    12-11-2020
    Location
    Zurich
    MS-Off Ver
    Excel 2019
    Posts
    13

    (Macro?) to add text at a certain point

    Hi there,
    This forum really helped my project work!
    The coloured bars in my excel sheet are now made with conditioned formatting

    Now I'd like to add something:

    At the end of some finished tasks, I'd like to put a text clarification. Which text is stated in column D (I'll hide this part later)
    As this is not conditional formatting I don't know how to tell Excel to do so. ¨

    Attached I have the excel how I'd like it to look but without the needed function /macro/condition or whatever else is needed to solve this.

  2. #2
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: (Macro?) to add text at a certain point

    How do you tell if a task has finished? There is nothing to indicate actual progress or completion of a task. Do you just assume it's finished if the end date has passed? In your example, the two "completed" tasks are in the future.

  3. #3
    Registered User
    Join Date
    12-11-2020
    Location
    Zurich
    MS-Off Ver
    Excel 2019
    Posts
    13

    Re: (Macro?) to add text at a certain point

    yes this is the idea, I insert the end date and then the text appears right next to this date in the calendar

  4. #4
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,731

    Re: (Macro?) to add text at a certain point

    You could have a formula like this in L5:

    =IF(L$2=EOMONTH($B$5,0)+1,$D5,"")

    but as you wouldn't know in advance which cell that needs to appear in, you would need to copy the formula to other cells, both to the right and the left. All the other cells would thus contain a formula returning a blank, so the text that is displayed in cell L5 is then truncated and only shows the first 1 or 2 characters, so I'm not really sure it is worth it.

    Hope this helps.

    Pete

  5. #5
    Registered User
    Join Date
    12-11-2020
    Location
    Zurich
    MS-Off Ver
    Excel 2019
    Posts
    13

    Re: (Macro?) to add text at a certain point

    Hi Pete, thank you very much!

    This was actually much easier than expected.
    Is there any way to prevent the cells from returning blank, so that more than the first characters are visible?

    Have a nice day

    Linda

  6. #6
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,731

    Re: (Macro?) to add text at a certain point

    Well, no, not really, The other cells are not actually empty, as they have a formula in them, and that was the point I was making - because those other cells are not empty, the text that appears in L5 cannot run into them, so you will only see a very limited part of the text.

    Pete

  7. #7
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: (Macro?) to add text at a certain point

    Here is a macro version that will insert the text as it is added in column D.

  8. #8
    Registered User
    Join Date
    12-11-2020
    Location
    Zurich
    MS-Off Ver
    Excel 2019
    Posts
    13

    Re: (Macro?) to add text at a certain point

    Thank you very much. My prior experience with macros is very limited: When I open the Macro section it is empty in this document. What am I doing wrong? (I already activated the Macros in the Trust Center)

+ 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. Replies: 2
    Last Post: 12-11-2019, 02:20 PM
  2. Extract text between one consistent point and another inconsistent point.
    By HappyChappy120 in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 08-20-2019, 12:13 PM
  3. [SOLVED] Extract text from a given point in a text string, when data points do not share the given
    By reedersketer in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-09-2014, 03:57 PM
  4. [SOLVED] Add tab to the point where text changes to italics
    By greek in forum Word Formatting & General
    Replies: 2
    Last Post: 04-19-2014, 01:14 AM
  5. Need Macro for Point to point matching
    By ecdlc888 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-05-2013, 10:41 PM
  6. Cut Text from a certain point
    By Rodnork in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-03-2007, 12:12 PM
  7. Replies: 2
    Last Post: 05-03-2007, 11:30 AM

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