+ Reply to Thread
Results 1 to 7 of 7

VBA Query for Downloading a XLS File

  1. #1
    Registered User
    Join Date
    04-30-2007
    Posts
    26

    VBA Query for Downloading a XLS File

    Hi,

    Iam using the following code to Download a excel file from web and copy and paste the contents to the worksheet.
    My Issue is every time it opens a new worksheet , instead it needs to paste in the existing worksheet.

    Thanks in advance
    SAthis

    Please Login or Register  to view this content.

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 insider Version 2507 Win 11
    Posts
    24,935

    Re: VBA Query for Downloading a XLS File

    Here is your issue:

    https://msdn.microsoft.com/en-us/lib.../ff837784.aspx

    a worksheet copy will always post to a new sheet.
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  3. #3
    Registered User
    Join Date
    04-30-2007
    Posts
    26

    Re: VBA Query for Downloading a XLS File

    Hi,
    Thanks for your reply,
    How to fix it.
    Instead worksheet.copy , i tried with copy destination and it failed.

    Sathish

    Quote Originally Posted by alansidman View Post
    Here is your issue:

    https://msdn.microsoft.com/en-us/lib.../ff837784.aspx

    a worksheet copy will always post to a new sheet.

  4. #4
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 insider Version 2507 Win 11
    Posts
    24,935

    Re: VBA Query for Downloading a XLS File

    Perhaps a range(YourRange).copy instead? You can then use Destination:

  5. #5
    Registered User
    Join Date
    04-30-2007
    Posts
    26

    Re: VBA Query for Downloading a XLS File

    Quote Originally Posted by alansidman View Post
    Perhaps a range(YourRange).copy instead? You can then use Destination:
    Any Way , I fixed it on my own

    Thanks
    Sathis

  6. #6
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 insider Version 2507 Win 11
    Posts
    24,935

    Re: VBA Query for Downloading a XLS File

    For the benefit of others who may have the same issue, please provide your solution.

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.

  7. #7
    Registered User
    Join Date
    04-30-2007
    Posts
    26

    Re: VBA Query for Downloading a XLS File

    Hi,

    The Following code Provided the Solution.

    Please Login or Register  to view this content.

    FIIDATA - Denotes the Sheet Name to Paste

    So Simple it was...


    Sathish

+ 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. downloading file from Web
    By headhair in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 04-01-2014, 07:28 AM
  2. Task Scheduler Downloading an Empty, Bad File Before Actual File Exists...Not Good
    By jamesdeuce in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 01-23-2014, 01:25 PM
  3. Downloading a CSV file from the internet
    By arleutwyler in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-04-2013, 10:57 AM
  4. Help with Downloading A CSV file
    By kchappy32 in forum Excel General
    Replies: 0
    Last Post: 06-05-2012, 03:24 PM
  5. downloading changing txt file from ftp
    By donyc in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-15-2011, 07:29 PM
  6. Downloading Refreshed Web Query Data into Adjacent Column
    By SteveC in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 05-07-2006, 12:35 PM
  7. Downloading Excel file
    By mullinam in forum Excel General
    Replies: 0
    Last Post: 05-07-2005, 04:49 PM

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