+ Reply to Thread
Results 1 to 4 of 4

Run Text Macro in cell, then stay there. Possible?

  1. #1
    Forum Contributor
    Join Date
    11-26-2008
    Location
    Ohio
    MS-Off Ver
    2016
    Posts
    326

    Run Text Macro in cell, then stay there. Possible?

    Is this possible? I have a macro (see code below) that runs from a button in the tool bar.
    The macro inserts "~This is a test" as you can see. After it runs, it goes to a cell to end (E12 in this case).
    Is it possible to have it just "stay", in what ever cell the macro runs in? If so how would that be done?


    [Sub Macro4444()
    '
    ' Macro4444 Macro
    ' TestMacro4444
    '

    '
    ActiveCell.FormulaR1C1 = "~This is a test"
    Range("E12").Select
    End Sub]

  2. #2
    Forum Expert gmr4evr1's Avatar
    Join Date
    11-24-2014
    Location
    Texas
    MS-Off Ver
    Office 2010 and 2007
    Posts
    3,448

    Re: Run Text Macro in cell, then stay there. Possible?

    Remove the
    Please Login or Register  to view this content.
    line from your code.
    1N73LL1G3NC3 15 7H3 4B1L17Y 70 4D4P7 70 CH4NG3 - 573PH3N H4WK1NG
    You don't have to add Rep if I have helped you out (but it would be nice), but please mark the thread as SOLVED if your issue is resolved.

    Tom

  3. #3
    Forum Contributor
    Join Date
    11-26-2008
    Location
    Ohio
    MS-Off Ver
    2016
    Posts
    326

    Re: Run Text Macro in cell, then stay there. Possible?

    Thanks!
    I appreciate it.

  4. #4
    Forum Expert gmr4evr1's Avatar
    Join Date
    11-24-2014
    Location
    Texas
    MS-Off Ver
    Office 2010 and 2007
    Posts
    3,448

    Re: Run Text Macro in cell, then stay there. Possible?

    No problem.

+ 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. Getting text to stay inside of merged cells
    By Devon Duggan in forum Excel General
    Replies: 2
    Last Post: 06-12-2015, 01:29 PM
  2. Replies: 1
    Last Post: 11-05-2014, 06:07 PM
  3. Replies: 0
    Last Post: 01-22-2014, 06:42 PM
  4. Need Vlookup help with numbers needing to stay as Text
    By MAPoppins718 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 01-15-2014, 01:01 PM
  5. [SOLVED] How to make text boxes to stay in place?
    By yes man in forum Excel General
    Replies: 2
    Last Post: 11-13-2013, 11:00 PM
  6. Replies: 0
    Last Post: 10-03-2005, 03:05 PM
  7. How can I get Macro to stay on Buttons Page?
    By Dreamwine59 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-12-2005, 01:07 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