+ Reply to Thread
Results 1 to 3 of 3

A VBA code within a XLSM file doesn´t work anymore after replacing a cell range

  1. #1
    Registered User
    Join Date
    11-08-2015
    Location
    RJ
    MS-Off Ver
    2010
    Posts
    2

    A VBA code within a XLSM file doesn´t work anymore after replacing a cell range

    Hi there,


    I’m facing to a weird issue in big VBA program for which I spent several weeks.

    The code essentially reads a big list of data within a cell range, and computes several filters, as well as build a pivot table to extract the required result.
    Both the list and the code lies inside the Sheet1 spreadsheet and worked fine so far, but once I replace the list ( by manually deleting the current cell range, and place another list pasted form external a sheet ) the code stops working, raising an error at the stage where should manage a pivot table (PV) object, just created. I suspect that this is happening due to the fact that this PV were created at this same Sheet1, and probably the manual delete-copy-paste of the previous list would perhaps delete some hidden attribute of the project, is it right ?


    Thank in advance,

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

    Re: A VBA code within a XLSM file doesn´t work anymore after replacing a cell range

    What's the error message?

    Can you post the code?

    Also what 'attribute' are you referring to?
    If posting code please use code tags, see here.

  3. #3
    Registered User
    Join Date
    11-08-2015
    Location
    RJ
    MS-Off Ver
    2010
    Posts
    2

    Re: A VBA code within a XLSM file doesn´t work anymore after replacing a cell range

    The whole code unfortunately has several references to the table contents, therefore there are restrictions to its disclosure.
    Anyway, the error occurs exactly at the line highlighted bellow:

    Please Login or Register  to view this content.
    The above code is at a module called by the following method, created just to catch errors:

    Please Login or Register  to view this content.
    It is instantiated by the following command:

    Please Login or Register  to view this content.
    Concerning to the worksheet superimposed “attribute” above mentioned as a possible reason of the problem, it was not an affirmation, but just a guessing. I actually even are not sure about that.
    I really don’t understand how a manual update of the table content could yield the error:

    Fail.jpg
    Note:
    Although the above system message isn't in english, I´m assuming it is intuitive uderstand it meaning...

+ 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. VBA code doesn't work anymore (WinHttpReq)
    By chrisignm in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-28-2015, 05:36 PM
  2. Checbox doesn't work anymore
    By daanlachmeijer in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-16-2014, 09:30 AM
  3. UpdateLink doesn't work with ".xlsm" file
    By topola in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 11-14-2014, 06:09 AM
  4. macro doesn't work anymore
    By cat3appr in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-12-2014, 05:31 AM
  5. Script doesn't work anymore (auto hide rows and columns
    By Crispy85 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-02-2013, 02:17 AM
  6. Replies: 3
    Last Post: 05-21-2013, 08:22 AM
  7. Excel 2007 : Paste special doesn't work anymore
    By eva000 in forum Excel General
    Replies: 2
    Last Post: 03-23-2012, 09:14 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