+ Reply to Thread
Results 1 to 2 of 2

Need macro to insert text string while inside cell (formula)

  1. #1
    Registered User
    Join Date
    06-09-2004
    Location
    Los Angeles, California
    Posts
    28

    Need macro to insert text string while inside cell (formula)

    I need a macro that will insert a text string (specifically "<br><br") while I'm editing the formula content of a cell.

    I got this far:

    Sub text()

    ActiveCell.FormulaR1C1 = "<br><br>"

    End Sub

    But this simply replaces a cell's content. I need the macro to insert the text string where the cursor is in the cell (formula).

    Sorry if the solution to this problem is simple. I don't have much expereince with macro programming.

    Thx for any info you can provide.

    -KH

  2. #2
    Registered User
    Join Date
    08-20-2003
    Location
    Luton, England
    Posts
    63
    Like this :- ??
    ActiveCell.Value = "<br>" & ActiveCell.Formula & "<br>"
    Regards
    BrianB
    Most problems are caused by starting from the wrong place.
    Use a cup of coffee to speed up all Windows processes.
    It's easy until you know how.
    -----------------------------------------

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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