+ Reply to Thread
Results 1 to 11 of 11

VBA Clearing Sheet Contents

  1. #1
    Registered User
    Join Date
    01-02-2013
    Location
    Ireland
    MS-Off Ver
    Excel 2010
    Posts
    48

    VBA Clearing Sheet Contents

    Hi

    Hope you can help me here.

    I am having a problem clearing data from an excel sheet.

    I have Data from Column A to DJ with 11,000 rows and the macro keeps failing and will not finish. From column G to DJ there is formulas not sure is this impacting it.

    Has anybody seen this happen before or have any advice?

    Thanks your help would be very much appreciated.

    Please Login or Register  to view this content.
    Last edited by bkeat; 12-18-2013 at 09:24 AM.

  2. #2
    Valued Forum Contributor
    Join Date
    09-21-2011
    Location
    Birmingham UK
    MS-Off Ver
    Excel 2003/7/10
    Posts
    2,188

    Re: VBA Clearing Sheet Contents

    What is happening? (when it fails)
    Hope this helps

    Sometimes its best to start at the beginning and learn VBA & Excel.

    Please dont ask me to do your work for you, I learnt from Reading books, Recording, F1 and Google and like having all of this knowledge in my head for the next time i wish to do it, or wish to tweak it.
    Available for remote consultancy work PM me

  3. #3
    Registered User
    Join Date
    01-02-2013
    Location
    Ireland
    MS-Off Ver
    Excel 2010
    Posts
    48

    Re: VBA Clearing Sheet Contents

    It macro does not finish just keeps running then i end it manually. Also if i do it manually the same problem occurs the processing does not complete eventually i have to kill the task.

  4. #4
    Valued Forum Contributor
    Join Date
    09-21-2011
    Location
    Birmingham UK
    MS-Off Ver
    Excel 2003/7/10
    Posts
    2,188

    Re: VBA Clearing Sheet Contents

    can you attach it?

  5. #5
    Forum Expert
    Join Date
    04-22-2013
    Location
    .
    MS-Off Ver
    .
    Posts
    4,418

    Re: VBA Clearing Sheet Contents

    Does it work if you do it bit by bit?
    Please Login or Register  to view this content.
    or something along those lines.

  6. #6
    Forum Guru Izandol's Avatar
    Join Date
    03-29-2012
    Location
    *
    MS-Off Ver
    Excel 20(03|10|13)
    Posts
    2,581

    Re: VBA Clearing Sheet Contents

    Perhaps you can try:
    Please Login or Register  to view this content.
    instead of this:
    Please Login or Register  to view this content.

  7. #7
    Registered User
    Join Date
    01-02-2013
    Location
    Ireland
    MS-Off Ver
    Excel 2010
    Posts
    48

    Re: VBA Clearing Sheet Contents

    @Izandol & @yudlugar they did not work I am afraid. My concern its the file not the macro as i use the same macro in another file and works perfectly with 30,000 lines of data over 43 columns.

    Even manually if i try to insert a row for example the file locks in (Not Responding) and i need to kill the task. Is there something in the excel causing this problem that you might have experience with. There is 14 sheets in the workbook but the Master sheet has all the detail combined with formulas that is about 1,000,000 cells with content, i have never seen this before in excel crashing constantly like this.

  8. #8
    Forum Guru Izandol's Avatar
    Join Date
    03-29-2012
    Location
    *
    MS-Off Ver
    Excel 20(03|10|13)
    Posts
    2,581

    Re: VBA Clearing Sheet Contents

    What is the size of your workbook?

  9. #9
    Registered User
    Join Date
    01-02-2013
    Location
    Ireland
    MS-Off Ver
    Excel 2010
    Posts
    48

    Re: VBA Clearing Sheet Contents

    11mb and after the formulas are executed its 25mb

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

    Re: VBA Clearing Sheet Contents

    What other code, if any, is in the workbook?
    If posting code please use code tags, see here.

  11. #11
    Registered User
    Join Date
    01-02-2013
    Location
    Ireland
    MS-Off Ver
    Excel 2010
    Posts
    48

    Re: VBA Clearing Sheet Contents

    I have another macro which i run after clearing with the new data that formats the data, then does HLookup formulas in the Master Excel sheet, this is working although the copy paste function there takes time also.

+ 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] Macro is not copying to other sheet, just clearing contents of select case
    By Rokn in forum Excel Programming / VBA / Macros
    Replies: 19
    Last Post: 11-21-2013, 09:06 AM
  2. Clearing Contents
    By makku in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-02-2011, 05:23 AM
  3. Clearing contents of cell by cell refererance in other sheet
    By Kyles_treos in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 06-11-2008, 10:23 AM
  4. Clearing Contents ?
    By Mhz in forum Excel - New Users/Basics
    Replies: 5
    Last Post: 01-21-2007, 11:20 AM
  5. Clearing Contents
    By Sean in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 05-06-2005, 01:06 PM

Tags for this Thread

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