Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #9  
Old 07-16-2014, 10:55 AM
EC37 EC37 is offline Populate Cells with info contained in other cells Windows 7 64bit Populate Cells with info contained in other cells Office 2010 64bit
Advanced Beginner
Populate Cells with info contained in other cells
 
Join Date: May 2014
Location: Waltham, MA
Posts: 56
EC37 is on a distinguished road
Default

Awesome. Well. I set the ows to be ActiveSheet as you mentioned. It worked, technically speaking
What happened at the end though, was it took the value of F# (F being the task name, and # being the row # that contains "Sub-Phase") and applied it from row 24 to 248- when it should have applied it from 24 and stopped at 31 (the famous .End(xlDown)).
well, that's because I never set it to stop at the last row. So, I fixed that, and also determined another flaw I wasn't paying attention to- and that is: Some Phases have no Sub-Phases, therefore, the Phase name should be copied down. So instead of saying:
Code:
Select Case ows.Cells(jr, 16).Value
   Case "Phase"
   Case "Sub-Phase"
     ows.Cells(jr, 5).Value = col6
etc...
I edited it to do the same thing for Phase:

Code:
For jr = 2 To ec.Row
    Select Case ows.Cells(jr, 16).Value
        Case "Sub-Phase"
            col6 = ows.Cells(jr, 6).Value
        Case "Phase"
            col6 = ows.Cells(jr, 6).Value
        Case Else
            ows.Cells(jr, 5).Value = col6
        End Select
    Next jr
So, I'm fairly certain I'm all set! I will keep running through it to test and let you know.

Last edited by EC37; 07-17-2014 at 08:52 AM. Reason: new troubles with phase included in the equasion. texttocolumns no longer an issue
Reply With Quote
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
Populate Cells with info contained in other cells Can I pre-populate cells with a formula? Box Excel 1 05-03-2014 11:55 PM
How to populate cells in Sheet2 with Data Source query using cell data from Sheet1 bobznkazoo Excel 2 03-27-2014 11:14 AM
Populate Cells with info contained in other cells How-TO format cells (FILL) by comparing cells zanat0s Excel 1 07-03-2012 04:27 AM
Count range cells eliminating merge cells danbenedek Excel 0 06-15-2010 12:40 AM
Populate cells in Word from a database hotlilshan Word 3 12-09-2008 01:51 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 02:25 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft