Getting last value in Excel workb and copy
Closed
nvanzyl24
-
Oct 25, 2009 at 03:57 AM
venkat1926 Posts 1863 Registration date Sunday June 14, 2009 Status Contributor Last seen August 7, 2021 - Oct 26, 2009 at 09:19 PM
venkat1926 Posts 1863 Registration date Sunday June 14, 2009 Status Contributor Last seen August 7, 2021 - Oct 26, 2009 at 09:19 PM
Related:
- Getting last value in Excel workb and copy
- Number to words in excel - Guide
- Gif in excel - Guide
- Marksheet in excel - Guide
- How to take screenshot in excel - Guide
- Excel apk for pc - Download - Spreadsheets
3 responses
venkat1926
Posts
1863
Registration date
Sunday June 14, 2009
Status
Contributor
Last seen
August 7, 2021
811
Oct 25, 2009 at 08:54 PM
Oct 25, 2009 at 08:54 PM
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 June 14, 2009
Status
Contributor
Last seen
August 7, 2021
811
Oct 25, 2009 at 08:56 PM
Oct 25, 2009 at 08:56 PM
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 June 14, 2009
Status
Contributor
Last seen
August 7, 2021
811
Oct 26, 2009 at 09:19 PM
Oct 26, 2009 at 09:19 PM
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