LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Workbook updated from Access

Hello everybody.
I have to create from access 97 a workbook with advanced adds with a typical
code:
Dim XL As Excel.Application, WKB As Workbook, SHT As Worksheet
Set XL = New Excel.Application
With XL
.Visible = True
Set WKB = .Workbooks.Add(xlWBATWorksheet)
End With
.....
CopyFromRecordset RS
......

and I would calculate work days from two dates with function:
Cells(4,17).Select
Cells(4, 17).FormulaR1C1 = "=NETWORKDAYS(R[1]C[-8],RC[-7],Holidays)"

but Excel return error #NAME in the cell, also if options "advanced adds"
are selected in the workbook.
Therefore, I have deselected these options, closed the window, re-open
window for re-selecting advanced options, then, after selected cell, I pushed
function button (fx) and confirmed: function runned exactly!
I am very confused about this fenomena: someone help me?
Is another way to create a workbook ?
Many thanks in advance.


--
Giangi E.D.
Italy
 
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
Displaying when workbook was last updated Sapper Excel Discussion (Misc queries) 5 June 19th 09 04:06 PM
The workbook containts one or more links that cannot be updated? SJMP Setting up and Configuration of Excel 6 March 11th 09 09:33 AM
workbook contains one or more links that cannot be updated Synapsless Excel Discussion (Misc queries) 9 March 8th 07 09:17 PM
Importing updated data from one workbook to another Garcia Excel Programming 0 March 24th 06 02:48 AM
Insert Whole Row in Excel when one column is updated from Access. Gordy w/Hi Expectations Excel Programming 0 October 20th 05 02:26 AM


All times are GMT +1. The time now is 02:00 AM.

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

About Us

"It's about Microsoft Excel"