Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9
Default Sending a date from VB2005 to Excel

I have a VB2005 (frontloader) which automates Excel (creates new
instance, new file etc). I have put a datepicker on the frontloader
but when the date gets put into the Excel file I get a #NAME error on
five cells that are dependent on the cell the date has been placed
into. These file cells use the EOMONTH and EDATE functions.

Not sure if it is to do with the the value in the cell not being a
date as such. I'm using the DateSerial(y,m,d) in the frontloader to
populate the cell.

Please anyone help?

Thanks

Meldrum
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 46
Default Sending a date from VB2005 to Excel

#Name is another way of saying "Formula not found". So your vb app is not in
play and is probably working fine.

Not suggesting that you rtfm or anything, but to quote Excel help... :)

EOMONTH

[See Also]

Returns the serial number for the last day of the month that is the
indicated number of months before or after start_date. Use EOMONTH to
calculate maturity dates or due dates that fall on the last day of the month.

If this function is not available, and returns the #NAME? error, install and
load the Analysis ToolPak add-in.

....

Hope that helps!



"meldrum_scotland" wrote:

I have a VB2005 (frontloader) which automates Excel (creates new
instance, new file etc). I have put a datepicker on the frontloader
but when the date gets put into the Excel file I get a #NAME error on
five cells that are dependent on the cell the date has been placed
into. These file cells use the EOMONTH and EDATE functions.

Not sure if it is to do with the the value in the cell not being a
date as such. I'm using the DateSerial(y,m,d) in the frontloader to
populate the cell.

Please anyone help?

Thanks

Meldrum

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
sending excel Pammy Excel Discussion (Misc queries) 2 October 7th 08 04:05 PM
Combination chart using VB2005 Ventuspilot Charts and Charting in Excel 2 November 16th 06 01:34 AM
Sending automatic e-mails by date from Exel Mike Weeks Excel Worksheet Functions 1 June 14th 06 05:19 PM
Need to perform the same macro to multiple xls files in VB2005 Exp Jhcorsair Excel Programming 2 December 30th 05 02:54 AM
Learning VB6 or VB2005? DTTODGG Excel Programming 3 December 22nd 05 04:19 PM


All times are GMT +1. The time now is 08:44 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"