+ Reply to Thread
Results 1 to 8 of 8

Macro help for compiling data to randomly blank cells

Hybrid View

  1. #1
    Registered User
    Join Date
    07-21-2011
    Location
    melbourne, florida
    MS-Off Ver
    Excel 2010
    Posts
    39

    Macro help for compiling data to randomly blank cells

    I have two colums of dates in one workbook that need to be filled in into one column of another workbook. The column in the new workbook already has values from one column in the workbook, but has some randomly blank cells that i need to fill with the other columns.

    Example:

    From the old workbook

    A
    1/1/12
    1/2/12
    1/3/12

    From new scanlist
    B
    2/1/12

    2/3/12

    What I would like to do is take whatever date is in the corresponding cell as the blank cell and input that value into the new scanlist to look like this:

    C
    2/1/12
    1/2/12
    2/3/12
    Last edited by Cutter; 08-02-2012 at 05:56 PM. Reason: Corrected title

  2. #2
    Registered User
    Join Date
    07-21-2011
    Location
    melbourne, florida
    MS-Off Ver
    Excel 2010
    Posts
    39

    Re: Marco help for compiling data to randomly blank cells

    Would I be able to maniplulate this code to do what im looking for? Say if theres a blank cell, paste that corresponding value?

    ActiveWorkbook.Close SaveChanges:=True
        Set wbk = Workbooks.Open(strFirstFile)
        With wbk.Sheets("Sheet1")
            .Range("A1:A500").Copy
        End With
        Set wbk = Workbooks.Open(strSecondFile)
        With wbk.Sheets("Sheet1")
            .Range("C1:C500").PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks:= _
                False, Transpose:=False
        End With

  3. #3
    Registered User
    Join Date
    07-21-2011
    Location
    melbourne, florida
    MS-Off Ver
    Excel 2010
    Posts
    39

    Re: Marco help for compiling data to randomly blank cells

    Bump...Anyone?

  4. #4
    Registered User
    Join Date
    07-21-2011
    Location
    melbourne, florida
    MS-Off Ver
    Excel 2010
    Posts
    39

    Re: Marco help for compiling data to randomly blank cells

    Would it be possible to do something like a "SkipValue" command like the SkipBlanks command?

  5. #5
    Registered User
    Join Date
    07-21-2011
    Location
    melbourne, florida
    MS-Off Ver
    Excel 2010
    Posts
    39

    Re: Marco help for compiling data to randomly blank cells

    Bump it up.

  6. #6
    Registered User
    Join Date
    07-21-2011
    Location
    melbourne, florida
    MS-Off Ver
    Excel 2010
    Posts
    39

    Re: Marco help for compiling data to randomly blank cells

    bump. still looking for a solution

  7. #7
    Registered User
    Join Date
    07-21-2011
    Location
    melbourne, florida
    MS-Off Ver
    Excel 2010
    Posts
    39

    Re: Marco help for compiling data to randomly blank cells

    Still need a solution to this issue

  8. #8
    Registered User
    Join Date
    07-21-2011
    Location
    melbourne, florida
    MS-Off Ver
    Excel 2010
    Posts
    39

    Re: Marco help for compiling data to randomly blank cells

    Is there a way to lock cells that have information in a specific column without creating a macro?
    Last edited by bigkahuna2187; 08-02-2012 at 12:52 PM.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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