+ Reply to Thread
Results 1 to 4 of 4

macro to make a history sheet

  1. #1
    Forum Contributor
    Join Date
    10-23-2014
    Location
    Kolding, Denmark
    MS-Off Ver
    MS Office 2010
    Posts
    169

    macro to make a history sheet

    Hi

    I want macro to tjek if colunm L has any cells with text in it..
    if that is the case then tjek the number in column B, find that number in another sheet and copy that infomation to a third sheet

    any ideas?

  2. #2
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,613

    Re: macro to make a history sheet

    Ideas? :

    Loop through all cells in range.
    If text found - take value from B, use it either Range.Find method or Worksheetfunction.Match to locate it in the other sheet, then copy from respective column to third one.
    Best Regards,

    Kaper

  3. #3
    Forum Contributor
    Join Date
    10-23-2014
    Location
    Kolding, Denmark
    MS-Off Ver
    MS Office 2010
    Posts
    169

    Re: macro to make a history sheet

    my first problem is that all the macros i have found to look for text in range L loops forever and makes the file close..

  4. #4
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,613

    Re: macro to make a history sheet

    As for looping forever and closing - not seeing the code is not so easy to diagnose.

    A good starting point could be limiting the column L to non-empty part, then loading all possibly-non empty part into an array and then loop through array elements.

    As you have already posted almost 100 times - I probably do not have to suggest that: to receive something more detailed than just an idea consider attaching 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. Make history in excel
    By MetteGaga in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-17-2015, 07:50 AM
  2. I want to make a macro to bring tables from another sheet to cover sheet
    By nthomas901 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-09-2014, 09:38 AM
  3. Replies: 8
    Last Post: 11-08-2013, 07:46 AM
  4. [SOLVED] Macro Create an automatic History Sheet with timestamps
    By leander in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-14-2013, 09:52 AM
  5. Adding a field to the History sheet
    By Cubical in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-04-2011, 02:11 AM
  6. Replies: 8
    Last Post: 01-20-2011, 02:40 AM
  7. Making History Sheet Permanent?
    By ftm in forum Excel General
    Replies: 0
    Last Post: 02-05-2008, 10:44 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