+ Reply to Thread
Results 1 to 14 of 14

Inline text to footnote

  1. #1
    Registered User
    Join Date
    09-10-2013
    Location
    Zagreb
    MS-Off Ver
    Excel 2013
    Posts
    8

    Inline text to footnote

    I'm trying to convert inline text that is surrounded by [footnote] and [/footnote] tags into normal footnotes. Can you share some advice?

  2. #2
    Forum Expert macropod's Avatar
    Join Date
    12-22-2011
    Location
    Canberra, Australia
    MS-Off Ver
    Word, Excel & Powerpoint 2003 & 2010
    Posts
    3,726

    Re: Inline text to footnote

    A footnote requires both a footnote reference in the body of the document and the actual footnote content (which goes in the footnote). So far, your post seems to identify only the footnote content. What indicators are there for the footnote reference?
    Cheers,
    Paul Edstein
    [Fmr MS MVP - Word]

  3. #3
    Registered User
    Join Date
    09-10-2013
    Location
    Zagreb
    MS-Off Ver
    Excel 2013
    Posts
    8

    Re: Inline text to footnote

    I have number of footnote as number before [footnote]. Does this help?

  4. #4
    Forum Expert macropod's Avatar
    Join Date
    12-22-2011
    Location
    Canberra, Australia
    MS-Off Ver
    Word, Excel & Powerpoint 2003 & 2010
    Posts
    3,726

    Re: Inline text to footnote

    In that case, you could use a macro like:
    Please Login or Register  to view this content.
    Note: the above code will preserve any formatting your footnote text already has.

  5. #5
    Registered User
    Join Date
    09-10-2013
    Location
    Zagreb
    MS-Off Ver
    Excel 2013
    Posts
    8

    Re: Inline text to footnote

    Thanks for your effort, I have tried it and I got error 5560 "The Find What text contains a Pattern Match expressions which is not valid". In sub line .execute is where code stops.

  6. #6
    Forum Expert macropod's Avatar
    Join Date
    12-22-2011
    Location
    Canberra, Australia
    MS-Off Ver
    Word, Excel & Powerpoint 2003 & 2010
    Posts
    3,726

    Re: Inline text to footnote

    That will be due to your Windows Regional Settings. Change:
    .Text = "[0-9]@[ \[]{1,2}footnote\]*\[/footnote\]"
    to:
    .Text = "[0-9]@[ \[]{1;2}footnote\]*\[/footnote\]"

  7. #7
    Registered User
    Join Date
    09-10-2013
    Location
    Zagreb
    MS-Off Ver
    Excel 2013
    Posts
    8

    Re: Inline text to footnote

    I am trying something using http://www.gmayor.com/replace_using_wildcards.htm but I am surely not not advanced user .

  8. #8
    Registered User
    Join Date
    09-10-2013
    Location
    Zagreb
    MS-Off Ver
    Excel 2013
    Posts
    8

    Re: Inline text to footnote

    You are word master, thank you very, very much . I will give my best to learn from your site and examples. Thanks again

  9. #9
    Forum Expert macropod's Avatar
    Join Date
    12-22-2011
    Location
    Canberra, Australia
    MS-Off Ver
    Word, Excel & Powerpoint 2003 & 2010
    Posts
    3,726

    Re: Inline text to footnote

    The process I used employs a wildcard Find expression, as per the gmayor site, but you can't use Find/Replace on its own to turn your body text into footnotes.

  10. #10
    Registered User
    Join Date
    09-10-2013
    Location
    Zagreb
    MS-Off Ver
    Excel 2013
    Posts
    8

    Re: Inline text to footnote

    Thanks again, I could not do it without you

  11. #11
    Registered User
    Join Date
    09-10-2013
    Location
    Zagreb
    MS-Off Ver
    Excel 2013
    Posts
    8

    Re: Inline text to footnote

    One more thing, if I would like to have numbers added automatically before [footnote] in inline text what would I have to do? Can you suggest code for this? That would be big help for me, now I have to check numbers before placing new ones. This is what I have so far.Thanks
    Please Login or Register  to view this content.
    Last edited by tomislav1975; 10-27-2014 at 12:27 PM.

  12. #12
    Forum Expert macropod's Avatar
    Join Date
    12-22-2011
    Location
    Canberra, Australia
    MS-Off Ver
    Word, Excel & Powerpoint 2003 & 2010
    Posts
    3,726

    Re: Inline text to footnote

    For the purposes of the macro I supplied before, it really doesn't matter what the numbers are. For all it cares, they could all be the same or completely random. Indeed, it could even be modified to work without them, just by changing:
    .Text = "[0-9]@[ \[]{1;2}footnote\]*\[/footnote\]"
    to:
    .Text = "\[footnote\]*\[/footnote\]"

    If you're wanting to add the numbers for other purposes, though, you could use code like:
    Please Login or Register  to view this content.
    Note that the above code re-numbers any tagged text you've already numbered, in case you've already done some tagging & numbering, then inserted new tagged text in between.
    Last edited by macropod; 10-27-2014 at 06:47 PM.

  13. #13
    Registered User
    Join Date
    09-10-2013
    Location
    Zagreb
    MS-Off Ver
    Excel 2013
    Posts
    8

    Re: Inline text to footnote

    Thank you very much, I have learned a lot. I really appreciate your time and knowledge.

  14. #14
    Forum Expert macropod's Avatar
    Join Date
    12-22-2011
    Location
    Canberra, Australia
    MS-Off Ver
    Word, Excel & Powerpoint 2003 & 2010
    Posts
    3,726

    Re: Inline text to footnote

    Post #10 cross-posted at: http://www.mrexcel.com/forum/general...nt-inline.html
    For cross-posting etiquette, please read FORUM RULE 8: http://www.excelforum.com/forum-rule...rum-rules.html

+ 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. Excel 2007 : inline if() formula
    By mm1284 in forum Excel General
    Replies: 2
    Last Post: 12-03-2010, 03:22 AM
  2. inline function help?
    By Greg_R in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 09-30-2010, 03:07 PM
  3. [SOLVED] "&" in Excel footnote as text
    By SLC in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 06-05-2006, 05:25 PM
  4. inline calculations possible?
    By bcamp1973 in forum Excel General
    Replies: 3
    Last Post: 03-09-2006, 04:08 PM
  5. Adding formatting to inline formula..
    By GHB in forum Excel General
    Replies: 3
    Last Post: 03-26-2005, 10:06 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