Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi, I have created with the very much appreciated help from these discussion
boards a workbook that includes a tab that has a high level summary price based on users input and then a hyperlink that once clicked on will break out the prices based on their choices at a more detailed level I'm struggling with 3 things 1) Getting the project price to move over to column E it is currently in Column C 2) Adding a Total Addt'l products price between the new rows and the Project Price 3) Is there a way to incorporate all of this data into a Word letter when it's all done? Here's the code Sub CreateTab1() Dim ws As Worksheet Set ws = gettab("tab1") Dim rPart As Range Dim Target As Range With ws .Range("B3") = "Developers" .Range("C3") = Worksheets("Planner").Range("B5") Set Target = .Range("C4") End With Set rPart = Worksheets("Addtl Products").Range("C12") Do Until rPart = "" Target = rPart.Value Target.Offset(, 1) = rPart.Offset(, -1).Value Target.Offset(, 2) = rPart.Offset(, 1) Set Target = Target.Offset(1) Set rPart = rPart.Offset(1) Loop Target.Offset(, -1) = "Project Price" Target = Worksheets("Planner").Range("ProjectModel.price") End Sub Sub CreateTab2() Dim ws As Worksheet Set ws = gettab("tab2") Dim rPart As Range Dim Target As Range With ws .Range("B3") = "Developers" .Range("C3") = Worksheets("Planner").Range("B5") Set Target = .Range("C4") End With Set rPart = Worksheets("Addtl Products").Range("C12") Do Until rPart = "" Target = rPart.Value Target.Offset(, 1) = rPart.Offset(, -1).Value Target.Offset(, 2) = rPart.Offset(, 1) Set Target = Target.Offset(1) Set rPart = rPart.Offset(1) Loop Target.Offset(, -1) = "Project Price" Target = Worksheets("Planner").Range("TermModel.price") End Sub |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Macro recorded... tabs & file names changed, macro hangs | Excel Worksheet Functions | |||
AutoRun Macro with a delay to give user the choice to cancel the macro | Excel Programming | |||
Macro Help Needed - Excel 2007 - Print Macro with Auto Sort | Excel Worksheet Functions | |||
Macro not showing in Tools/Macro/Macros yet show up when I goto VBA editor | Excel Programming | |||
Start Macro / Stop Macro / Restart Macro | Excel Programming |