+ Reply to Thread
Results 1 to 4 of 4

Removing a feature from a macro

  1. #1
    Registered User
    Join Date
    04-21-2014
    Location
    UK
    MS-Off Ver
    Excel 2010
    Posts
    2

    Removing a feature from a macro

    Hi, I found a macro for a task I need to do which splits a single worksheet into multiple workbooks with a set number of rows.

    The code incorporates copying the first row (header) of the original worksheet into all the created workbooks. However, since my original worksheet does not have a header, I need this feature removing to stop the first row being reproduced into all the created workbooks, as this row contains data rather than a header. The code is as follows:

    Please Login or Register  to view this content.
    I'm a VBA newbie so any help to accomplish this would be great. Thank you!

  2. #2
    Forum Guru HaHoBe's Avatar
    Join Date
    02-19-2005
    Location
    Hamburg, Germany
    MS-Off Ver
    work: 2016 on Win10 (notebook), private: 2019 on Win10 (desktop), 2019 on Win11 (notebook)
    Posts
    8,197

    Re: Removing a feature from a macro

    Hi, in31,

    Please Login or Register  to view this content.
    You can comment the code lines by putting a ' to the beginning of the line (or more old-fashioned place REM at the beginning of the code line).

    Ciao,
    Holger
    Use Code-Tags for showing your code: [code] Your Code here [/code]
    Please mark your question Solved if there has been offered a solution that works fine for you

  3. #3
    Registered User
    Join Date
    04-21-2014
    Location
    UK
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: Removing a feature from a macro

    Hello,

    Thank you for your reply. I did try that initially but it removes the first row completely in all the workbooks, which I don't want since this row contains data. Not sure why

  4. #4
    Forum Guru HaHoBe's Avatar
    Join Date
    02-19-2005
    Location
    Hamburg, Germany
    MS-Off Ver
    work: 2016 on Win10 (notebook), private: 2019 on Win10 (desktop), 2019 on Win11 (notebook)
    Posts
    8,197

    Re: Removing a feature from a macro

    Hi, in31,

    it would be easier if you tell us how your data looks like instead of presenting a macro that doesn´t suit your needs.

    Please Login or Register  to view this content.
    Ciao,
    Holger

+ 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. *Removing* an anti-error feature from vba?!
    By ThomasCarter in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 09-13-2012, 10:45 AM
  2. Replies: 1
    Last Post: 08-24-2012, 05:17 PM
  3. [SOLVED] Use the find feature in a macro
    By KLT in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-17-2012, 02:57 PM
  4. removing duplicates feature is malfunctioning
    By ilundy77 in forum Excel General
    Replies: 3
    Last Post: 03-16-2009, 11:50 AM
  5. Assign a Macro feature not showing
    By Danno in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-07-2005, 03:05 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