+ Reply to Thread
Results 1 to 10 of 10

Macro to delete cols from col BJ to col NO

  1. #1
    Forum Contributor
    Join Date
    12-12-2017
    Location
    New Zealand
    MS-Off Ver
    Ms Office 2016
    Posts
    455

    Macro to delete cols from col BJ to col NO

    Hello all ,

    i have 3 x macros that can delete rows before , after and between .

    But now i needing to get one that will delete all data and cols from and including col BJ right along to col NO .

    Thanks .

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Macro to delete cols from col BJ to col NO

    Hi,

    Presumably

    Please Login or Register  to view this content.
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Forum Contributor
    Join Date
    12-12-2017
    Location
    New Zealand
    MS-Off Ver
    Ms Office 2016
    Posts
    455

    Re: Macro to delete cols from col BJ to col NO

    Thanks for that but i dont know how to write this .
    Cant get your macro to work .
    Thanks .

  4. #4
    Forum Contributor
    Join Date
    12-12-2017
    Location
    New Zealand
    MS-Off Ver
    Ms Office 2016
    Posts
    455

    Re: Macro to delete cols from col BJ to col NO

    These are the 3 x delete rows macros i have , im not sure how to put

    Range("BJ:NO").Columns.Delete

    into my macros .
    Thanks .
    Attached Files Attached Files

  5. #5
    Forum Expert Arkadi's Avatar
    Join Date
    02-13-2014
    Location
    Smiths Falls, Ontario, Canada
    MS-Off Ver
    Office 365
    Posts
    5,059

    Re: Macro to delete cols from col BJ to col NO

    Which of your macros needs to delete those columns? If all 3 do, then paste the code into all 3 modules. It does not matter if you do it before or after deleting rows.
    Please help by:

    Marking threads as closed once your issue is resolved. How? The Thread Tools at the top
    Any reputation (*) points appreciated. Not just by me, but by all those helping, so if you found someone's input useful, please take a second to click the * at the bottom left to let them know

    There are 10 kinds of people in this world... those who understand binary, and those who don't.

  6. #6
    Forum Contributor
    Join Date
    12-12-2017
    Location
    New Zealand
    MS-Off Ver
    Ms Office 2016
    Posts
    455

    Re: Macro to delete cols from col BJ to col NO

    I needing a totally independant macro , a 4th to delete these cols .
    Thanks . .

  7. #7
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Macro to delete cols from col BJ to col NO

    ....stating the obvious I suppose but what is stopping you writing another macro procedure?

    Did you create the other three or just inherit them.
    Last edited by Richard Buttrey; 05-04-2018 at 05:47 PM.

  8. #8
    Forum Expert Arkadi's Avatar
    Join Date
    02-13-2014
    Location
    Smiths Falls, Ontario, Canada
    MS-Off Ver
    Office 365
    Posts
    5,059

    Re: Macro to delete cols from col BJ to col NO

    In any of your modules just put

    Please Login or Register  to view this content.

  9. #9
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Macro to delete cols from col BJ to col NO

    Quote Originally Posted by I need excel help View Post
    I needing a totally independant macro , a 4th to delete these cols .
    Thanks . .
    Please Login or Register  to view this content.

  10. #10
    Forum Contributor
    Join Date
    12-12-2017
    Location
    New Zealand
    MS-Off Ver
    Ms Office 2016
    Posts
    455

    Re: Macro to delete cols from col BJ to col NO

    Thanks a bunch guys both were perfect .

+ 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: 4
    Last Post: 12-06-2015, 04:37 PM
  2. [SOLVED] Sum columns (duplicates in row header) & delete duplicate cols to leave single unique cols
    By kinrossfarm in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-20-2014, 05:50 AM
  3. Multiple find and delete between two cols in two worksheets
    By terryhenderson in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 04-20-2013, 05:18 PM
  4. Replies: 7
    Last Post: 10-06-2011, 07:38 PM
  5. delete cols in vba
    By welchs101 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 05-30-2011, 07:23 PM
  6. Delete and re-arrange cols
    By T De Villiers in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-24-2006, 08:30 AM
  7. Range.Select 1st pass 13 cols, 2nd paqss 25 cols twice as wide in error?
    By Craigm in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-02-2006, 06:04 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