ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Insert, copy, update, delete records through VBA (https://www.excelbanter.com/excel-programming/441075-insert-copy-update-delete-records-through-vba.html)

Raiju

Insert, copy, update, delete records through VBA
 
Hi,

I have an excel'07 database of employees where I have to add, update, delete
records very often. Since it is not practical for me to open the excel file
always, I wish to have a macro, which can help me to enter, update or delete
records from an excel file and even generate report of employees based on the
different criteria.

It will be a great help if any one can help me with this.

Regards,
Raiju

Philosophaie

Insert, copy, update, delete records through VBA
 
Update:

Sub Macro1()
Workbooks.Open Filename:= "C:\Path\file.xlsm"
End Sub


Add:

Sub Macro1()
Workbooks.Add
End Sub




"Raiju" wrote:

Hi,

I have an excel'07 database of employees where I have to add, update, delete
records very often. Since it is not practical for me to open the excel file
always, I wish to have a macro, which can help me to enter, update or delete
records from an excel file and even generate report of employees based on the
different criteria.

It will be a great help if any one can help me with this.

Regards,
Raiju


Philosophaie

Insert, copy, update, delete records through VBA
 
Also to delete:

Sub Macro1()
Kill c:\Path\file.xlsm
End Sub

"Philosophaie" wrote:

Update:

Sub Macro1()
Workbooks.Open Filename:= "C:\Path\file.xlsm"
End Sub


Add:

Sub Macro1()
Workbooks.Add
End Sub




"Raiju" wrote:

Hi,

I have an excel'07 database of employees where I have to add, update, delete
records very often. Since it is not practical for me to open the excel file
always, I wish to have a macro, which can help me to enter, update or delete
records from an excel file and even generate report of employees based on the
different criteria.

It will be a great help if any one can help me with this.

Regards,
Raiju


[email protected][_2_]

Insert, copy, update, delete records through VBA
 
Since it is not practical for me to open the excel file always

????


All times are GMT +1. The time now is 01:30 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com