+ Reply to Thread
Results 1 to 9 of 9

When I run macro, the text disappears

  1. #1
    Registered User
    Join Date
    01-12-2016
    Location
    Texas
    MS-Off Ver
    Mac 2011
    Posts
    4

    When I run macro, the text disappears

    I am new to writing macros, and I'm trying to create one that automatically formats a report I have to generate weekly from the output I get from our scheduling program. When I run the macro, the formatting happens correctly, but all of the text in the boxes disappears. Does anyone know why this would happen?
    Here is my code:

    Please Login or Register  to view this content.

  2. #2
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: When I run macro, the text disappears

    Attach a sample workbook. Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and use the paperclip icon to open the upload window.

    View Pic
    If I've helped you, please consider adding to my reputation - just click on the liitle star at the left.

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~(Pride has no aftertaste.)

    You can't do one thing. XLAdept

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~aka Orrin

  3. #3
    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: When I run macro, the text disappears

    Quote Originally Posted by 1368468485 View Post
    When I run the macro, the formatting happens correctly, but all of the text in the boxes disappears.
    What boxes do you mean?

    There are deletions in this code, could that be what's removing your text?
    Please Login or Register  to view this content.
    Also you have "macro recorder bloat". There is probably more code that what you really need. For example, in
    Please Login or Register  to view this content.
    you could probably get away with
    Please Login or Register  to view this content.
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

  4. #4
    Registered User
    Join Date
    01-12-2016
    Location
    Texas
    MS-Off Ver
    Mac 2011
    Posts
    4

    Re: When I run macro, the text disappears

    Here is the before and after of what I'm trying to accomplish

    Sample Workbook.xls

  5. #5
    Registered User
    Join Date
    01-12-2016
    Location
    Texas
    MS-Off Ver
    Mac 2011
    Posts
    4

    Re: When I run macro, the text disappears

    I've replied with a before and after of what I'm trying to do. The deletions are for getting rid of extra columns that I don't need in my final sheet. When I run the macro I have now, the formatting of the text boxes (font, borders, etc.) is correct, but the actual text is gone, like something just cleared the contents.

  6. #6
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: When I run macro, the text disappears

    There are no textboxes in the uploaded workbook.
    If posting code please use code tags, see here.

  7. #7
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: When I run macro, the text disappears

    I trimmed your code some - see if it's what you need:

    Please Login or Register  to view this content.

  8. #8
    Registered User
    Join Date
    01-12-2016
    Location
    Texas
    MS-Off Ver
    Mac 2011
    Posts
    4

    Re: When I run macro, the text disappears

    Thank you!!!

  9. #9
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: When I run macro, the text disappears

    You're welcome and thanks for the rep!

+ 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. Tool Tip in text box that disappears when clicked?
    By Hammy1 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 01-09-2013, 02:31 PM
  2. Hover Text disappears as you scroll down sheet
    By chuckman4112 in forum Excel General
    Replies: 5
    Last Post: 03-06-2011, 01:34 PM
  3. [SOLVED] Text disappears when word wrap is used
    By Mark_GS1CA in forum Excel General
    Replies: 15
    Last Post: 05-15-2007, 04:54 PM
  4. [SOLVED] text disappears from document to excel
    By gregp22 in forum Excel - New Users/Basics
    Replies: 1
    Last Post: 03-20-2006, 12:55 PM
  5. [SOLVED] Text box in chart disappears but reappears when in spreadsheet
    By Eggcel in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 03-07-2006, 11:15 PM
  6. [SOLVED] = sum value turns to text and formula disappears
    By Tara DAgostino in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-21-2006, 03:35 PM
  7. Text box disappears
    By Suenapky in forum Excel Charting & Pivots
    Replies: 0
    Last Post: 12-08-2005, 02:40 PM
  8. when I wrap text in excel it disappears? autofit does not work
    By Gareth in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 12-07-2005, 02:10 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