+ Reply to Thread
Results 1 to 3 of 3

Subscript out of range

  1. #1
    Registered User
    Join Date
    10-21-2021
    Location
    New Delhi
    MS-Off Ver
    MS Office 2016
    Posts
    6

    Subscript out of range

    Hi All,

    I've written this code but getting Subscript out of range error. Any expert help please
    Please Login or Register  to view this content.
    Last edited by Praveenlal; 03-23-2022 at 02:25 PM. Reason: changed code

  2. #2
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS 365 Family 64-bit 2502
    Posts
    26,982

    Re: Copy data from Excel and Paste in PowerPoint (compile error Next without For)

    Administrative Note:

    Welcome to the forum.

    We would very much like to help you with your query, however you need to include code tags around your code.

    Please take a moment to add the tags. 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, and it also maintains VBA formatting.

    Please see Forum Rule #2 about code tags and adjust accordingly. Click on Edit to open your post, 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

    I have added code tags this time because you are still new but please take the time to review our rules. There aren't many, and they are all important.
    Jeff
    | | |·| |·| |·| |·| | |:| | |·| |·|
    Read the rules
    Use code tags to [code]enclose your code![/code]

  3. #3
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS 365 Family 64-bit 2502
    Posts
    26,982

    Re: Copy data from Excel and Paste in PowerPoint (compile error Next without For)

    You need an End With to match this With:

    Please Login or Register  to view this content.

+ 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. Replies: 0
    Last Post: 07-11-2019, 05:36 AM
  2. [SOLVED] VBA compile error on simple copy-paste special
    By DJDRU in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-10-2017, 12:42 PM
  3. VBA to copy Excel data range and paste in PowerPoint text boxes
    By palaniappan0212 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 11-29-2016, 04:43 AM
  4. Copy/Paste excel data with data bars to Powerpoint
    By sgoyal in forum Excel General
    Replies: 1
    Last Post: 03-05-2014, 04:18 PM
  5. Replies: 4
    Last Post: 02-01-2013, 12:00 PM
  6. Compile error adding picture to powerpoint?
    By nickypatterson in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 01-31-2011, 02:08 PM
  7. Compile error in copy/paste code
    By carbonboywonder in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-16-2010, 07:46 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