+ Reply to Thread
Results 1 to 5 of 5

delete txt vba --> stack overlflow

  1. #1
    Forum Contributor
    Join Date
    04-21-2012
    Location
    rome, italy
    MS-Off Ver
    365
    Posts
    132

    delete txt vba --> stack overlflow

    i have maaany rows (about 38000 rows but soon thay will become more and more)

    in column "A" there is text "xxx"

    (warning: xxx is together followed spaces, really is something as "xxx " and i don't know how many spaces there will be. for me is important to delete xxx and not also spaces, i will delete them later by other vba)

    i wrote a VBA to replace "xxx" with "".

    the VBA give error "stack overflow" due to, i think, the huge number of rows. infact if i delete many rows the vba works.

    any solution?


    more: in column "A", see filter, there is a special chatacter (the card spades sign). but if i try to copy it to paste in the vba code to delete also it... i can't copy it. any idea?

    see attached file
    Attached Files Attached Files

  2. #2
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,595

    Re: delete txt vba --> stack overlflow

    Please Login or Register  to view this content.

  3. #3
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: delete txt vba --> stack overlflow

    Not sure what exactly you are after, but integer could only take 32k rows, so change to

    Dim rows_unicode_100 As Long

  4. #4
    Forum Expert KOKOSEK's Avatar
    Join Date
    08-03-2018
    Location
    Pole in Yorkshire, UK
    MS-Off Ver
    365/2013
    Posts
    2,743

    Re: delete txt vba --> stack overlflow

    It should works:
    Please Login or Register  to view this content.
    Happy with my answer * Add Reputation.
    If You are happy with solution, please use Thread tools and mark thread as SOLVED.

  5. #5
    Forum Contributor
    Join Date
    04-21-2012
    Location
    rome, italy
    MS-Off Ver
    365
    Posts
    132

    Re: delete txt vba --> stack overlflow

    thank you. solved.

+ 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. [SOLVED] Out of Stack Space
    By IonutC in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-04-2019, 09:40 AM
  2. Stack overflow? PLEASE HELP
    By lazyengineer in forum Excel Programming / VBA / Macros
    Replies: 15
    Last Post: 07-29-2015, 12:25 PM
  3. Stack Graph
    By pphg in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 06-29-2012, 04:08 AM
  4. Keyboard Cell Delete Runs Into Stack OverFlow With Sheet Change
    By Winon in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 11-01-2011, 06:30 PM
  5. out of stack space??
    By adds007 in forum Excel Programming / VBA / Macros
    Replies: 23
    Last Post: 02-22-2011, 12:02 PM
  6. Replies: 8
    Last Post: 01-10-2011, 06:43 PM
  7. Out Of Stack Space
    By Momo in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-03-2005, 11: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