+ Reply to Thread
Results 1 to 6 of 6

400 Error when trying to Paste into an Excel Table

  1. #1
    Registered User
    Join Date
    07-09-2020
    Location
    London
    MS-Off Ver
    2016
    Posts
    4

    400 Error when trying to Paste into an Excel Table

    I want to paste values into an Excel Table that is on a protected sheet.
    I've put this code together which works, but only when I specify in the code where to copy from. The problem is that I want to specify what to copy before I run the code
    If I just remove the line which copies the data I get a 400 error

    Please Login or Register  to view this content.
    Last edited by FDibbins; 07-14-2020 at 03:44 PM.

  2. #2
    Valued Forum Contributor
    Join Date
    04-01-2015
    Location
    The Netherlands
    MS-Off Ver
    2003/2007/2010/2016/office 365
    Posts
    880

    Re: 400 Error when trying to Paste into an Excel Table

    Place the code between code tags. What is the problem now? Which sheet is Activesheet? Place the file

  3. #3
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,929

    Re: 400 Error when trying to Paste into an Excel Table

    eddie welcome to the forum

    1. Code Tags Added
    Your post does not comply with Rule 2 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.

    Highlight your code and click the # icon at the top of your post window. More information about these and other tags can be found at http://www.excelforum.com/forum-rule...rum-rules.html

    (I have added them for you today. Please take a few minutes to read all Forum Rules and comply in the future.)

    2. Administrative Note:

    Welcome to the forum.

    We would very much like to help you with your query, however it has been brought to our attention that the same query has been posted on one or more other forums and you have not provided the required cross-post link(s) here.

    Please see Forum Rule #3 about cross-posting and adjust accordingly. Read this to understand why we (and other sites like us) consider this to be important.

    (Note: this requirement is not optional. No help to be offered until the link is provided.)
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  4. #4
    Registered User
    Join Date
    07-09-2020
    Location
    London
    MS-Off Ver
    2016
    Posts
    4

    Re: 400 Error when trying to Paste into an Excel Table

    Hi,
    I did post something similar the other day, but didn't get a reply so this was an attempt to make the problem a little clearer.
    Shall I delete the other post?

  5. #5
    Registered User
    Join Date
    07-09-2020
    Location
    London
    MS-Off Ver
    2016
    Posts
    4

    Re: 400 Error when trying to Paste into an Excel Table

    I'm sorry, I can't seem to post in the Experts Exchange link and was unaware of the Cross Posting policy
    How do I get the link in?

  6. #6
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,929

    Re: 400 Error when trying to Paste into an Excel Table

    copy/paste here, but you may need to fenangle it with some padding spaces so the bot doesnt see it as a link

+ 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. Paste excel table in clipboard to an active excel sheet VBA
    By ulvrah in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 10-22-2019, 06:38 AM
  2. [SOLVED] I am getting error as "Run Time error '1004' Microsoft excel cannot paste the data
    By Amittapre in forum Excel Programming / VBA / Macros
    Replies: 43
    Last Post: 03-24-2017, 04:40 PM
  3. [SOLVED] Paste Values vba error (MS Excel 2007)
    By Pi* in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 09-11-2016, 04:31 PM
  4. Excel VBA copy paste 1004 error
    By salonee in forum Excel General
    Replies: 2
    Last Post: 12-19-2014, 10:53 AM
  5. [SOLVED] using VBA to copy paste table when cell value - VBA error
    By brdstyle in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 10-28-2013, 01:58 AM
  6. Paste Excel table as a table in Powerpoint
    By chuzasoft in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-04-2013, 01:33 AM
  7. Excel Macro Error - Run time error 1004 - Paste method of worksheet class failed
    By kvflynn in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-15-2012, 10:51 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