Home |
Search |
Today's Posts |
#1
![]() |
|||
|
|||
![]()
I receive this error when i run this macro from Excel 2000 spanish
version, but no when i run in english version? Public Function gf_CopyPasteData(s_range As String, s_range2 As String, i_start_sheet_index As Integer, i_end_sheet_index As Integer) As Integer 'copies data from sheet one sheet to another sheet If CInt(Range(s_range).Count) = CInt(Range(s_range2).Count) Then Sheets(i_start_sheet_index).Select Range(s_range).Select Selection.Copy Sheets(i_end_sheet_index).Select Range(s_range2).Select ActiveSheet.Paste 'validation passed, both ranges are of the same size gf_CopyPasteData = 0 Else 'validation failed, both ranges are a different size gf_CopyPasteData = 1 End If End Function thanks |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Help PLEASE! Not sure what answer is: Match? Index? Other? | Excel Worksheet Functions | |||
How does the PASTE.SPECIAL function work? | Excel Discussion (Misc queries) | |||
Match function...random search? | Excel Worksheet Functions | |||
ClearContents method on a passed range | New Users to Excel | |||
Formula to list unique values | Excel Worksheet Functions |