Copying data from workbook to workbook using button
Solved/Closed
Hello guys nad ladies,
I have a problem, i hope you can help me.
I have an excel worksheet (2 columns, 7 rows)
It's kind of daily statistics (emails in and out, cases solved, new cases etc.). I want my colleagues to put data there, click button "send" and data from second column they input will appear in another excel file in exactly row with their names and date in the beginning (some kind of daily update).
Could you provide me with code for this button?
If you need further details please do not hesitate to ask me.
Thank you!
I have a problem, i hope you can help me.
I have an excel worksheet (2 columns, 7 rows)
It's kind of daily statistics (emails in and out, cases solved, new cases etc.). I want my colleagues to put data there, click button "send" and data from second column they input will appear in another excel file in exactly row with their names and date in the beginning (some kind of daily update).
Could you provide me with code for this button?
If you need further details please do not hesitate to ask me.
Thank you!
Related:
- Copying data from workbook to workbook using button
- At button - Guide
- Tmobile data check - Guide
- Protect pdf from copying - Guide
- How to answer call with volume button android - Guide
- How to remove number from blacklist on button phone - Guide
1 response
OK, well here is the code.
We do not provide turn key solutions. Tweek this simple code to do the real details of what you are asking. Use the below cut and paste as a wireframe, and modify it to fit your needs!
All I did was record a macro, now just tweek it to fit your needs!
We do not provide turn key solutions. Tweek this simple code to do the real details of what you are asking. Use the below cut and paste as a wireframe, and modify it to fit your needs!
Sub copytoanewfile()
'
' copytoanewfile Macro
' Macro recorded 9/29/2015 by onebaddass mf'r
'
'
Range("B2:B8").Select
Selection.Copy
Workbooks.Open Filename:= _
"C:\here_is_the\filepath\and-the\filename.xls"
Range("B23").Select
ActiveSheet.Paste
End Sub
All I did was record a macro, now just tweek it to fit your needs!
Sep 30, 2015 at 08:55 AM
But I can't invent how to write a command to save and close active worksheet.
Any ideas?
Sep 30, 2015 at 04:57 PM
or
Oct 7, 2015 at 06:09 PM