+ Reply to Thread
Results 1 to 4 of 4

Code in excel file to automatically run when manually copy pasting downloaded excel data

  1. #1
    Registered User
    Join Date
    06-14-2017
    Location
    uk
    MS-Off Ver
    MS Office 2010
    Posts
    2

    Unhappy Code in excel file to automatically run when manually copy pasting downloaded excel data

    Hi All,
    I am quite new to vba and have been trying to put together codes available online but unfortunately is not working due to my lack of background knowledge.

    What I would like to do is whenever I download excel dataset with updated data (i.e. each month's data added) from the website & manually copy paste into my excel file (which I will be using for reporting purposes) into the worksheet named "All_Data", the code to check for 3 conditions (specialLookUp) should run automatically and the resulting subset must appear in Sheet2.

    Initially I used just the Subroutine specialLookUp and it worked but when I copy pasted the downloaded data into "All_Data" Worksheet it stopped working, then I tried to add the Worksheet_change and other bits.

    All of this code is in Module1.

    Please help!

    Here's the code:


    Please Login or Register  to view this content.
    Last edited by ExcelerNew; 06-14-2017 at 08:16 AM. Reason: As per Forum rule 3

  2. #2
    Forum Guru bakerman2's Avatar
    Join Date
    10-03-2012
    Location
    Antwerp, Belgium
    MS-Off Ver
    MSO Home and Business 2024
    Posts
    7,347

    Re: Code in excel file to automatically run when manually copy pasting downloaded excel da

    ExcelerNew,

    Welcome to the forum. We would really like to help you but please take a moment to read our Forum Rules.

    Your post does not comply with Rule 3 of our Forum RULES. Use code tags around code.

    Posting code between [CODE]Please [url=https://www.excelforum.com/login.php]Login or Register [/url] to view this content.[/CODE] tags makes your code much easier to read and copy for testing, it also maintains VBA formatting.

    Click on Edit to open your thread, then highlight your code and click the # icon at the top of your post window. More information about these and other tags can be found here

    Once you complied to this we can help you with your project.
    Avoid using Select, Selection and Activate in your code. Use With ... End With instead.
    You can show your appreciation for those that have helped you by clicking the * at the bottom left of any of their posts.

  3. #3
    Registered User
    Join Date
    06-14-2017
    Location
    uk
    MS-Off Ver
    MS Office 2010
    Posts
    2

    Re: Code in excel file to automatically run when manually copy pasting downloaded excel da

    Thank you Bakerman2 for letting me know, I have updated it now.

  4. #4
    Forum Guru bakerman2's Avatar
    Join Date
    10-03-2012
    Location
    Antwerp, Belgium
    MS-Off Ver
    MSO Home and Business 2024
    Posts
    7,347

    Re: Code in excel file to automatically run when manually copy pasting downloaded excel da

    For starters both the event macro's ( Change & Calculate) should be in the SheetModule of sheet All_Data.

+ 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. Excel macro fail launch automatically in Task Scheduler , but run file manually
    By waihar in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 08-15-2016, 07:57 PM
  2. Replies: 1
    Last Post: 03-31-2015, 03:01 PM
  3. Automatically Copy contents from One column of One excel file to Another excel file
    By sarabjit in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-22-2014, 08:11 PM
  4. [SOLVED] Automatically Copy Data in Excel File upon opening email attachment
    By rachaelgoldman1 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-20-2013, 05:21 AM
  5. [SOLVED] (URGENT) Search for matching data, copy and pasting from a closed excel file
    By dani_n88 in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 05-07-2012, 02:31 PM
  6. Automatically Copy Data into Worksheet from Different Excel File
    By mwgr5 in forum Excel Programming / VBA / Macros
    Replies: 26
    Last Post: 07-21-2010, 01:48 PM
  7. Copy data from excel file to Web Form automatically
    By vandanavai in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 12-15-2008, 10:54 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