Results 1 to 17 of 17

Remove Columns, Cut and Paste Column, Delete Rows - Macros

Threaded View

  1. #1
    Forum Contributor
    Join Date
    03-05-2015
    Location
    London, England
    MS-Off Ver
    2024
    Posts
    124

    Remove Columns, Cut and Paste Column, Delete Rows - Macros

    I've been asked by work, after claiming I'm pretty good with Excel to provide a short cut for the team. I thought it'd be pretty straight forward but after six years out of the I.T game, and never really being very good at VBA, I'm struggling. Please somebody help !!!

    A report is exported daily that requires manipulation. A number of columns require deleting, one needs to be cut and pasted and then many of the records deleted. As most of the employees are not users of Excel I need to make this as easy as possible for them.

    Firstly I need to delete the following columns which I have the code for (I think)

    Sub sbVBS_To_Delete_Specific_Multiple_Columns()
    Sheets("Sheet1").Range("C:D,K:O,R:V,X:AK,AM:AO").EntireColumn.Delete
    End Sub

    Then I need to Cut column I (Cuarto) to column B.

    Then I need to delete all rows that do not have the room number (Cuarto) starting with 29**. Some cells are blank. Others are room numbers ranging from 101 to 5538.

    Finally the last row of the report needs to go. This is never in the same row number but is always the last row.


    Any help would be greatly appreciated. I will add attachments of the actual report when it works.

    Is this all possible in one macro ?
    Last edited by M12NIX; 11-12-2015 at 06:58 PM. Reason: Cannot add attachments

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. How to create Macros buttons to add or delete columns and rows.
    By damienchew in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-22-2014, 08:39 PM
  2. Replies: 2
    Last Post: 01-13-2014, 10:52 AM
  3. Copy columns, remove duplicates and paste different worksheet and column query
    By Chris* in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-13-2014, 06:52 AM
  4. [SOLVED] Remove rows based on duplicates in certain columns, and merge data from another column
    By yanagi600 in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 01-02-2013, 04:17 PM
  5. Macro to delete certain columns and delete rows based on time in another column
    By beepbeep27 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-12-2012, 11:47 AM
  6. how to remove the blank column (delete rows)
    By SelinaT in forum Excel General
    Replies: 1
    Last Post: 04-18-2011, 03:50 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