+ Reply to Thread
Results 1 to 3 of 3

VBA - Help with Worksheet.Change

  1. #1
    Registered User
    Join Date
    05-19-2017
    Location
    New York
    MS-Off Ver
    2010
    Posts
    2

    VBA - Help with Worksheet.Change

    Sup,

    Guys, Im having some troubles with this function "worksheet.change". I need a macro to run when a cell - A1 for example - changes. This cell(A1) takes some seconds to get changed because its linked with another data base which comes from an online website. So it takes at least 5 seconds to copy all the information from the other base to this plan with all the macros.

    My problem is: I cant set a correctly code to run exaclty when this cell "A1" has changed. Using my current code, after it has copied all the data from the website the macros doesn't run.

    And if i call them as soon as I open the plan, there's not enough time to bring the data correctly and so screw up everything.

    If you guys know some way to do it right, even with not with "worksheet.change", please tell me.

    Thanks

  2. #2
    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: VBA - Help with Worksheet.Change

    Please provide the code you have now. How is the data being copied to A1 from the database?

    Also the sub name should be Worksheet_Change which may be part of the problem.
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

  3. #3
    Registered User
    Join Date
    05-19-2017
    Location
    New York
    MS-Off Ver
    2010
    Posts
    2

    Re: VBA - Help with Worksheet.Change

    About the code, I was using it with "_". Sorry , i've wrote it wrong up there.

    The data is being copied by an Excel code that is also provided by the site, It's something like this:"=QTLINK("SERIES";"ARGUMENT_X";"ARGUMENT_Y")"; Every time I open this plan, this code updates me some data from this website and so copies to the plan. My problem is that I can't make excel wait while it is happening. I've tried everything that I knew but nothing solved it, sometimes it runs all the macros before the data had been sucessfully copied to the respective cells running it wrong. Otherwise, It waits all data copying but doesn't run all the macros after it.

    Got it? In short call -> VBA has to wait until my first code copies the data then run all the macros. The code I was using to make it wait doesn't work, so there's no point sending you this.

    If you could suggest me a way out of this I would be really, really thankful.

+ 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. Worksheet Change Event - Save file after tenth change
    By nigelog in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-10-2017, 09:19 AM
  2. [SOLVED] Help with Worksheet Change command to change Cell value without pressing Enter key
    By rv02 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-13-2016, 12:30 PM
  3. Worksheet change event with multiple column cell value change
    By borgyang in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-29-2015, 11:53 AM
  4. [SOLVED] How to prevent worksheet change invoking System X Control change event
    By dmw2014 in forum Excel Programming / VBA / Macros
    Replies: 15
    Last Post: 09-13-2014, 10:35 PM
  5. Change this VBA code from Worksheet Change to Worksheet calculate?
    By ExcelFailure in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-26-2013, 04:26 AM
  6. Replies: 5
    Last Post: 02-01-2013, 12:58 PM
  7. auto change cell formula on condition of worksheet change in other cells
    By futurejock in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 06-01-2009, 12:11 AM

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