+ Reply to Thread
Results 1 to 19 of 19

Disable wrap text?

  1. #1
    Registered User
    Join Date
    01-02-2011
    Location
    Tacoma
    MS-Off Ver
    Excel 2003
    Posts
    34

    Disable wrap text?

    I'm dealing with some data where I copy/paste stuff from a website onto an excel spreadsheet, and I'm doing it a ton (thousands of times by the end of this).

    The problem is the cells wrap the text without me telling them to. Then I have to go in and disable wrap text for that individual cell.

    Copy new piece of data, enter in new cell, excel auto wraps the text again. I have to unwrap text for that cell.

    All the cells are have wrap text off, but when I copy/paste the data it activates wrap text. Is there any way to just turn wrap text off indefinately?

    Thanks guys,

    Zach

  2. #2
    Forum Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,372

    Re: How to disable wrap text?

    Hello,

    when you past the copied values, use Paste Special - tick Values - OK.

    cheers

  3. #3
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: How to disable wrap text?

    If you're copying from the Web as implied then I suspect if you opt to Import as Text (rather than HTML) which should avoid the wrap, however, you may get empty rows which you don't want (and lose some other formatting).

    An alternative might be to use some VBA which should preserve the formatting whilst removing the Wrap, eg:

    Please Login or Register  to view this content.
    to insert the above right click on the tab against which the code shoudl be applied select View Code and paste above into resulting window
    (file must be Macro enabled when re-opened etc...)

  4. #4
    Registered User
    Join Date
    01-02-2011
    Location
    Tacoma
    MS-Off Ver
    Excel 2003
    Posts
    34

    Re: How to disable wrap text?

    Quote Originally Posted by teylyn View Post
    Hello,

    when you past the copied values, use Paste Special - tick Values - OK.

    cheers
    Excel isn't giving me the option to paste special. Just paste. The reason I only have past special is because I have to double click the cell to paste the data. If I only click the cell once to paste the data the data will paste all over the place. So The goal I have is to have a ton of data appear as 1 cell.
    Last edited by zsemago; 01-02-2011 at 02:52 PM.

  5. #5
    Registered User
    Join Date
    01-02-2011
    Location
    Tacoma
    MS-Off Ver
    Excel 2003
    Posts
    34

    Re: How to disable wrap text?

    Quote Originally Posted by DonkeyOte View Post
    If you're copying from the Web as implied then I suspect if you opt to Import as Text (rather than HTML) which should avoid the wrap, however, you may get empty rows which you don't want (and lose some other formatting).

    An alternative might be to use some VBA which should preserve the formatting whilst removing the Wrap, eg:

    Please Login or Register  to view this content.
    to insert the above right click on the tab against which the code shoudl be applied select View Code and paste above into resulting window
    (file must be Macro enabled when re-opened etc...)
    I interpreted the VBA thing as to click the column I am pasting these codes into, and find the view code part of the column. I couldn't do find the view code part.

  6. #6
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: How to disable wrap text?

    why not just select the whole sheet and turn of wrap text?
    what is the url to the data you are copying?
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  7. #7
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: How to disable wrap text?

    Quote Originally Posted by zsemago View Post
    I interpreted the VBA thing as to click the column I am pasting these codes into, and find the view code part of the column. I couldn't do find the view code part.
    Right click on the Tab name (ie the sheet name at the bottom of the screen) and select View Code - proceed from there as outlined.

  8. #8
    Registered User
    Join Date
    01-02-2011
    Location
    Tacoma
    MS-Off Ver
    Excel 2003
    Posts
    34

    Re: How to disable wrap text?

    Quote Originally Posted by martindwilson View Post
    why not just select the whole sheet and turn of wrap text?
    what is the url to the data you are copying?
    It's coordinates off of google maps. But they are really complicated computer talk and not filtered yet so they are long. Wrap text is already off for the whole document, its just when I paste the data something tells the cell to turn wrap text on for that specific cell because there is so much data. So I just want to turn off that automatic triggering of wrap text Excel is executing.

  9. #9
    Registered User
    Join Date
    01-02-2011
    Location
    Tacoma
    MS-Off Ver
    Excel 2003
    Posts
    34

    Re: How to disable wrap text?

    Quote Originally Posted by DonkeyOte View Post
    Right click on the Tab name (ie the sheet name at the bottom of the screen) and select View Code - proceed from there as outlined.
    I don't know about the macro-enabled stuff. But this works so far!

  10. #10
    Registered User
    Join Date
    01-02-2011
    Location
    Tacoma
    MS-Off Ver
    Excel 2003
    Posts
    34

    Re: How to disable wrap text?

    Quote Originally Posted by DonkeyOte View Post
    If you're copying from the Web as implied then I suspect if you opt to Import as Text (rather than HTML) which should avoid the wrap, however, you may get empty rows which you don't want (and lose some other formatting).

    An alternative might be to use some VBA which should preserve the formatting whilst removing the Wrap, eg:

    Please Login or Register  to view this content.
    to insert the above right click on the tab against which the code shoudl be applied select View Code and paste above into resulting window
    (file must be Macro enabled when re-opened etc...)
    This worked great until I saved the file (macro-enabled) and opened it again. Now that I open the file again it still has the same stuff on the view code section, but now the text wraps all the time when I don't want it to. I also moved some columns around in the excel file, but I doubt that should matter. Do you know what the problem is?

  11. #11
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Disable wrap text?

    I suspect Macros are not Enabled when re-opening the file

    XL2003:
    see: http://office.microsoft.com/en-us/of...001140307.aspx

    XL2007+
    see: http://office.microsoft.com/en-us/ex...010096919.aspx

  12. #12
    Registered User
    Join Date
    01-02-2011
    Location
    Tacoma
    MS-Off Ver
    Excel 2003
    Posts
    34

    Re: Disable wrap text?

    Quote Originally Posted by DonkeyOte View Post
    I suspect Macros are not Enabled when re-opening the file

    XL2003:
    see: http://office.microsoft.com/en-us/of...001140307.aspx

    XL2007+
    see: http://office.microsoft.com/en-us/ex...010096919.aspx
    No dice...I doodled around with some excel documents, and came to find that both before and after using macro, closing, and opening it up again my security settings are on "diasable all macros with notification". And "trust access to the VBA project object model" is unchecked. So I don't think the problem is in the security department because I don't think anything changed.

    I also sampled all the other security options and none of them produced results for me.

  13. #13
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Disable wrap text?

    If you're running on a Network it's possible that there is a Group Policy in place controlling the Security Settings.

    If you modify your Security settings, close Excel completely, reopen Excel have those settings you set been "reset" ?

  14. #14
    Registered User
    Join Date
    01-02-2011
    Location
    Tacoma
    MS-Off Ver
    Excel 2003
    Posts
    34

    Re: Disable wrap text?

    Quote Originally Posted by DonkeyOte View Post
    If you're running on a Network it's possible that there is a Group Policy in place controlling the Security Settings.

    If you modify your Security settings, close Excel completely, reopen Excel have those settings you set been "reset" ?
    No they remained

  15. #15
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Disable wrap text?

    Quote Originally Posted by zsemango
    they remained
    What are the security settings you have specified ?

    Try using "Disable with Notification" and having "Trust Access" checked.

    When you open the file you should get a Dialog appear on screen (top of sheet) with an Enable Macros button.

    You can also consider creating a Trusted Location - any file opened from within that location will open with Macros Enabled.

  16. #16
    Registered User
    Join Date
    01-02-2011
    Location
    Tacoma
    MS-Off Ver
    Excel 2003
    Posts
    34

    Re: Disable wrap text?

    Quote Originally Posted by DonkeyOte View Post
    When you open the file you should get a Dialog appear on screen (top of sheet) with an Enable Macros button.
    I found this button! And stuff is working again. I assume I just have to click this everytime I open the file?

    Thanks for the help man

  17. #17
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Disable wrap text?

    Depends - people have different settings - some like selfcert certificates etc...

    I personally use Trusted Locations for folders I use regularly and which I control content... for everything else I use that same setting and enable macros via the button as and when I'm sure they're not malicious.

    Most people would agree that using "enable all macros" is generally speaking unwarranted.

  18. #18
    Registered User
    Join Date
    10-16-2012
    Location
    London, england
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: How to disable wrap text?

    Quote Originally Posted by DonkeyOte View Post
    If you're copying from the Web as implied then I suspect if you opt to Import as Text (rather than HTML) which should avoid the wrap, however, you may get empty rows which you don't want (and lose some other formatting).

    An alternative might be to use some VBA which should preserve the formatting whilst removing the Wrap, eg:

    Please Login or Register  to view this content.
    to insert the above right click on the tab against which the code shoudl be applied select View Code and paste above into resulting window
    (file must be Macro enabled when re-opened etc...)
    Hi! So I used this macro and voila! NO MORE AUTO WRAP! NIce. HOWEVER, IT ALSO DISABLED CTRL+Z and CTRL+Y (Undo and Redo) - can you please help? Thanks!

  19. #19
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: Disable wrap text?

    excelseeker1980,

    Welcome to the Forum, unfortunately:

    Your post does not comply with Rule 2 of our Forum RULES. Don't post a question in the thread of another member -- start your own thread. If you feel it's particularly relevant, provide a link to the other thread. It makes sense to have a new thread for your question because a thread with numerous replies can be off putting & difficult to pick out relevant replies.
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

+ 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