Getting last value in Excel workb and copy
Closed
nvanzyl24
-
25 Oct 2009 à 03:57
venkat1926 Posts 1863 Registration date Sunday 14 June 2009 Status Contributor Last seen 7 August 2021 - 26 Oct 2009 à 21:19
venkat1926 Posts 1863 Registration date Sunday 14 June 2009 Status Contributor Last seen 7 August 2021 - 26 Oct 2009 à 21:19
Related:
- Getting last value in Excel workb and copy
- Excel mod apk for pc - Download - Spreadsheets
- Arrow keys not working in excel - Guide
- How to copy data from one excel sheet to another - Guide
- How to change date format in excel - Guide
- Kernel for excel repair - Download - Backup and recovery
3 responses
venkat1926
Posts
1863
Registration date
Sunday 14 June 2009
Status
Contributor
Last seen
7 August 2021
811
25 Oct 2009 à 20:54
25 Oct 2009 à 20:54
copy paste this macro in a standard module . the macro is named "test"
assign this macro to the button
assign this macro to the button
Sub test()
Dim r As Range, x
With Worksheets("certno")
Set r = .Range("A1").End(xlDown)
x = r.Value
x = x & 1
With Worksheets("uncertb")
.Range("D5") = x
End With
End With
End Sub
venkat1926
Posts
1863
Registration date
Sunday 14 June 2009
Status
Contributor
Last seen
7 August 2021
811
25 Oct 2009 à 20:56
25 Oct 2009 à 20:56
Sorry I forgot to add
worksheets names need not have ".xls". only workbooks need that suffix
worksheets names need not have ".xls". only workbooks need that suffix
venkat1926
Posts
1863
Registration date
Sunday 14 June 2009
Status
Contributor
Last seen
7 August 2021
811
26 Oct 2009 à 21:19
26 Oct 2009 à 21:19
keep both the saved workbooks open and try this macro( I have not tested)
Sub test()
Dim r As Range, x
With Workbooks("certno.xls").Worksheets("certno")
Set r = .Range("A1").End(xlDown)
x = r.Value
x = x & 1
With Workbooks("uncertb.xls").Worksheets("uncertb")
.Range("D5") = x
End With
End With
End Sub