datepicker how to add into subject of email

Patriot2879

Well-known Member
Joined
Feb 1, 2018
Messages
1,259
Office Version
  1. 2010
Platform
  1. Windows
Hello, i have the code below where i am tring to add the date into my subject, i have added the date picker in Excel called DtPicker1, but when i have added into the code below it doesnt work and i get an error can you help me please?

Code:
aEmail.Subject = "Saturday  - " & Range("B1").Value & " " & Range("DtPicker1").Value
 

Excel Facts

When did Power Query debut in Excel?
Although it was an add-in in Excel 2010 & Excel 2013, Power Query became a part of Excel in 2016, in Data, Get & Transform Data.
hi sorry i forgot to add that where the dtpicker1 is located is in a sheet called 'Buckinghamshire'
 
Upvote 0
hi just wondering if you guys have any ideas at all please, what i want is the date to show in the subject of the email , so i have added the date picker to a sheet called 'Buckinghamshire' but the code above isnt working i hope you can help me please?
 
Upvote 0
.
Using the DatePicker may be overkill for what you are attempting ?

If you use this formula in B1 =TODAY() and format the cell as : DATE / *Wednesday, March 14, 2001 by right clicking the cell and choosing FORMAT / DATE.

Will this work for you ?
 
Upvote 0

Forum statistics

Threads
1,223,227
Messages
6,170,848
Members
452,361
Latest member
d3ad3y3

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