The code below now works:
Sub GenerateReport()
Dim NewMonth As String
Dim Point As Range
'NewMonth = InputBox("Enter Report Month to generate (Format: mmmmmmm yyyy e.g. JANUARY 2013")
'Sheets("Report").Activate
'ActiveSheet.Range("A5").Value = NewMonth
Set Point = Application.InputBox(prompt:="Select Supplier", Type:=8)
Sheets("Data").Range(Cells(Point.row, 2), Cells(Point.row, 7)).Copy
ActiveSheet.Range("B49").Select
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
End Sub
However when I replace:
Sheets("Data").Range(Cells(Point.row, 2), Cells(Point.row, 7)).Copy
ActiveSheet.Range("B49").Select
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
To call a specific cell and paste it to a specific location in another sheet. It breaks down. The code I replaced it with is
Sheets("Data").Range(Cells(Point.row, 5), Cells(Point.row, 5)).Copy
Sheets("Report").Range("H8").Select
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
The debugger hangs at the Select.PasteSpecial... line. Code somewhere above it wrong I guess?
Bookmarks