Sending spreadsheet via email (outlook)

jaypatel

Active Member
Joined
Nov 25, 2002
Messages
389
Hi,

I have a problem.....

firstly, i have 5 columns of data of which 2 are relevant, column A and B, populated by 20 rows, but it could be more or less.
Column a is an account number (alphanumeric like V0002) and column b has its corresponding email address, like accountv2@accountv2.co.uk.

The first problem is, how do you do a macro that does file save for individual account numbers for each spreadsheet. So it will create a "file save" V0002.xls as 1 spreadsheet, file save V00003.xls as another spreadsheet etc, so it will create 20 individual spreadsheets, but of course if there is 30 rows of data, it will need to create 30 different named spreadsheets.

Jay

PS this will be done on a weekly routine, so it must overwrite the data, and not ask the question that the file already exists. Also, the directory for all the files can be in the same directory.
 

Excel Facts

Show numbers in thousands?
Use a custom number format of #,##0,K. Each comma after the final 0 will divide the displayed number by another thousand

Scott Huish

MrExcel MVP
Joined
Mar 17, 2004
Messages
19,961
Office Version
  1. 365
Platform
  1. Windows
If you are still looking for help with this, I have a couple of questions:
What is going into the new worksheets?
Can you post a sample of what this looks like?
 

Forum statistics

Threads
1,186,172
Messages
5,956,355
Members
438,248
Latest member
Poysenberries

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
Top