+ Reply to Thread
Results 1 to 2 of 2

Macro code editing to collect extra lines of Data

Hybrid View

  1. #1
    Registered User
    Join Date
    12-02-2013
    Location
    Leicester
    MS-Off Ver
    Excel 2010
    Posts
    83

    Macro code editing to collect extra lines of Data

    The following code produces a spreadsheet with the following titles and data

    Miro Ref Resolver 2 Customer Acceptance Customer Number Customer Name Resolver 2 E/C Number Resolver 2 Manager Resolver 2 Site


    'Collect Acceptance Confirmed
    Sheet11.Activate
    x = Range("A1").CurrentRegion.Rows.Count
    
    Sheet11.Range(Cells(1, 1), Cells(x, 28)).Copy
    Sheet1.Activate
    Cells(1, 1).Select
    
    ActiveSheet.Paste
    Application.CutCopyMode = False
    
    
    'Collect Acceptance Not Confirmed
    Sheet12.Activate
    y = Range("A1").CurrentRegion.Rows.Count
    Sheet12.Range(Cells(2, 1), Cells(y, 28)).Copy
    Sheet1.Activate
    Cells(x + 1, 1).Select
    ActiveSheet.Paste
    Application.CutCopyMode = False
    
    
    'Collect All Escalations
    Sheet19.Activate
    z = Range("A1").CurrentRegion.Rows.Count
    Sheet19.Range(Cells(2, 1), Cells(z, 28)).Copy
    Sheet1.Activate
    Cells(x + y, 1).Select
    ActiveSheet.Paste
    Application.CutCopyMode = False
    However, i need this to pick up an extra colloum from the 3 sheets

    the extar coplloum i need is F from each of the 3 sheets

    current it picks up A,L,R,V,W,Z,AA and AB

    How can i amend it to collect the F colloum

    might seems easy but i have inherated this spreadsheet and Macro so i am working around procedures created by someone else who is no longer in the busniess

  2. #2
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,523

    Re: Macro code editing to collect extra lines of Data

    Attach a sample workbook. Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and use the paperclip icon to open the upload window.

    View Pic

+ 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. Macro/VBA code for COLLECT DATA FROM VARIOUS PAGES OF ONE WEBSITE..
    By gunjan.nasit in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-19-2013, 03:26 PM
  2. Macro code needed to delete unnecessary data after 20 lines
    By mohammedfaizal in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-16-2013, 08:36 AM
  3. [SOLVED] Macro creates extra blank lines
    By dare2join in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-28-2013, 12:51 AM
  4. Problem adding extra data lines to Combo boxes
    By daisy2012 in forum Excel General
    Replies: 0
    Last Post: 03-23-2012, 01:38 AM
  5. Macro for Excel to add up items and delete extra lines?
    By Fiero84 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-18-2005, 10:05 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