Actually I'm trying to copy some information from one sheet to another sheet, I don't want to mix all the data so I'm searching the last empty row and paste the other information from the last empty row number defined on the Interge Num.
----- Dep2_Prg_Plnt is on another Module -------------
But it's not working, Is possible to use saved Integer from one module to another module
VBA Code:
Public Sub copy_paste()
Dim Num As Integer
Call Arr_Prg_Plnt ' Copy some Information from on column to another sheet column
Range("A1").End(xlDown).Offset(1).Select ' Select the last empty cell ' Reach the last empty cell of the column
Num = ActiveCell.Row 'Take the row number
Call Dep2_Prg_Plnt 'Copy some Information from on column to another sheet column, but I try to associate with the Interger Num
VBA Code:
Sub Dep2_Prg_Plnt()
Sheets("Dep2").Select
Range("A6").Select
Range(Selection, Selection.End(xlDown)).Select
Selection.Copy
Sheets("PasteSheet").Select
Range("D" & Num).Select ' I want to associate the Num number defined one Module 1 to this Module
ActiveSheet.Paste
But it's not working, Is possible to use saved Integer from one module to another module