Results 1 to 11 of 11

Thread: Solved: VBA Macro to Print

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #3
    VBAX Regular
    Joined
    Dec 2005
    Posts
    6
    Location
    Thanks for your Help, being new to this I have no idea what Im doing, hence starting a course soon but I have changed the code to what i thought related to my Worksheets etc. When I run it I get a "Method or Data member not found" and it highlights Value = on the 4th last row. Could you let me know where I have it wrong.

    Appreciate the assistance.

    Glen


    [VBA] Sub Ports18()
    Dim SheetApp_List As Worksheet, SheetBuild_Sheet As Worksheet
    Dim PCIDcol As Range, CellTo As Range, CLL As Range

    '***** CHANGE AS NEEDED *****
    Set SheetApp_List = Sheets("Sheet with PCIDs")
    Set SheetBuild_Sheet = Sheets("Sheet To Print")
    Set PCIDcol = SheetApp_List.Columns("A")
    Set CellToPasteTo = SheetBuild_Sheet.Range("H3")

    Set PCIDcol = Intersect(PCIDcol, SheetApp_List.UsedRange) ', SheetApp_List.Rows("2:65536"))
    For Each CLL In PCIDcol.Cells
    SheetBuild_Sheet.Value = CLL.Value
    SheetBuild_Sheet.PrintOut
    Next
    End Sub[/VBA]
    Last edited by johnske; 12-18-2005 at 07:21 PM. Reason: edited to include VBA tags

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •