Possibly bitten off more that i can chew

Luke1690

Board Regular
Joined
Jul 26, 2022
Messages
106
Office Version
  1. 2016
Platform
  1. Windows
I want to know before I start a project, is it possible to fill in a second spreadsheet automatically from data in a single row from the main sheet.

Then with a single click from main sheet send that second sheet as an attachment on email from outlook. (I know that is possible using macros)

The bit I want to know is can I then delete the data from the second sheet by entering new data in row two on the main sheet. Then send that as an attachment automatically with the new data. So on and so fourth each new data typed in a new row on the main sheet overwrites the old data in the sheet 2 and is ready to send as a attachment?

Thanks in advance I will keep popping back on a checking answers and will give more details if you need.
 

Excel Facts

Can you sort left to right?
To sort left-to-right, use the Sort dialog box. Click Options. Choose "Sort left to right"
Thanks I'm teaching my self by watching you tube videos. I just haven't seen anything on the overwrite problem. What sort of code would I need or solution. Don't worry I don't want a full blown explanation, if you could point me In the right direction would be appreciated. Thank you
 
Upvote 0
VBA Code:
Option Explicit

Sub CpyPste()
    Sheet1.Range("A2").EntireRow.Copy Destination:=Sheet2.Range("A2")
    Sheet2.Columns("A:f").EntireColumn.AutoFit
End Sub
 
Upvote 0

Forum statistics

Threads
1,214,817
Messages
6,121,720
Members
449,050
Latest member
MiguekHeka

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