Saving to a database via a macro

Black Eagle

New Member
Joined
Mar 14, 2002
Messages
4
Listen - i've made an invoice template, & i'm saving some data to a database (.xls-file). i've also written a macro to save the individual invoices - everything works just fine, apart from this: when i'm using the macro to save (ActiveWorkbook.SaveAs) the data isn't saved to the database.

VERY VERY grateful for help & hints - i've been using this for more than a year, but i still haven't solved this one!
 

Excel Facts

Select all contiguous cells
Pressing Ctrl+* (asterisk) will select the "current region" - all contiguous cells in all directions.
I'm not sure I follow your problem, but maybe you just need to do a regular save also:
ActiveWorkbook.Save

Hope this helps.
Kind regards, Al.
 
Upvote 0
hi al
sorry been out of comission for a while
i can post some code, but all that is relevant is the mentioned ActiveWorkbook.Save or ActiveWorkbook.SaveAs only that the data isn't saved 2 the database, otherwise it works just fine - my invoices are saved with the so-designed names & everything, but if i want to save data 2 the database/update the database (& i do!), i have to save manually (ex: Ctrl/S) - only then do i get the question "update the existing record" - "create a new record" - "continue without updating" - & it bugs me! because i'm sure THERE IS A WAY 2 do this, & i can't figure it out!
 
Upvote 0

Forum statistics

Threads
1,214,583
Messages
6,120,378
Members
448,955
Latest member
BatCoder

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top