473,385 Members | 1,642 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Difference A97 vs A2003 - Excel - With ... End With - Question - Solution

For those after me converting A97 into A2003 and running into the same
problems....

Given recordset with fields: ExcelWorkSheetName, ExcelRangeName

The following With ... End With runs in A97 but fails in A2003

A97 - OK
=======
With ObjExcel.Worksheets(!ExcelWorkSheetName).Range(!Ex celRangeName)
..
..
..
End With

A2003 - Error: Type Mismatch
=================
Same as above

Solution
======
Add: .Value
With ObjExcel.Worksheets(!ExcelWorkSheetName.Value).Ran ge(!
ExcelRangeName.Value)
..
..
..
End With

(Cindy: your valued explanation and additions please...)

Feb 1 '07 #1
0 1210

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Brian Wolfe | last post by:
What is the diffierence between a "Blank Solution" and a new "Project"? Thanks.
0
by: zino | last post by:
how to kill excel http://www.codeproject.com/useritems/ReleaseExcelObject.asp
0
by: manishdotnet | last post by:
Hi all, We have an Excel VBA solution to generate Excel reports. Macros coded will fetch the data and populate it into Excel templates. Now this solution is to be migrated to a .net Excel...
2
by: kkbahuguna | last post by:
Please tell me the difference between excel.workbook and excel.workbooks in visual basic.
1
by: kkbahuguna | last post by:
Dim Appxl as Excel.application Dim WBook as Excel.workbooks Dim WSheet as Excel.worksheet FileName = "c:\Temp\New.xls" Set Appxl=CreateObject("Excel.Application") Set WBook = Appxl.Workbooks...
0
by: kkbahuguna | last post by:
Dim Appxl as Excel.application Dim WBook as Excel.workbooks Dim WSheet as Excel.worksheet FileName = "c:\Temp\New.xls" Set Appxl=CreateObject("Excel.Application") Set WBook = Appxl.Workbooks...
0
by: wankhusairi | last post by:
hallo sir .. i am still new on using vb and i have tried to load an excel using a visual basic interface.. but if i wanted to plot my excel data what should i do.. must i cahnge my program on loading...
1
by: mark23 | last post by:
Hi, Would you kind enough to tell me what is the difference between Excel.Application excel = new Excel.Application(); and Excel.Application excel = new Excel.ApplicationClass(); both of them...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.