LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #10   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,253
Default How to reference worksheet name with spaces?


would it not be easier for your code (and my eyes)
to create a worksheet and/or range variable?

afaik:
the choice of early binding (With a referenced library) or late binding
is NOT related to "lingering object references".

It is done to prevent problems with different versions of similar
libraries e.g. Excel 9 or Excel 11





--
keepITcool
| www.XLsupport.com | keepITcool chello nl | amsterdam


deko wrote :

Yes, provided that you are planning to keep a reference to Excel in
your project.


Is the issue about avoiding creation of a global reference that can
result in a lingering instance of Excel when xlapp = Nothing fails to
close Excel?

As for using Excel.Chart... how?

I can't seem to get this to work:

Dim xlChart As Excel.Chart
Set xlChart =
xlapp.Workbooks(strXlsFile).Worksheets(sn).ChartOb jects.Add _
(Left:=12.75, Top:=lngTop, Width:=650, Height:=497.25).Chart
xlChart.SetSourceData Source:=xlapp.Workbooks(strXlsFile). _
Worksheets(sn).Range(rst!str2), PlotBy:=xlColumns
xlChart.ChartType = xlLineMarkers xlChart .. etc, etc ...

Is this code correct?



 
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
Deleting unwanted lead spaces throughout a worksheet Coles2020 Excel Worksheet Functions 12 September 21st 07 10:40 PM
remove spaces in linked worksheet object dg Excel Worksheet Functions 4 August 29th 07 04:46 PM
how do I remove leading spaces and leave the remianing spaces w Debi Excel Worksheet Functions 6 February 28th 07 03:29 PM
Macro that double spaces rows for an entire worksheet? glaves123 Excel Discussion (Misc queries) 1 November 6th 05 03:42 AM
I want in one worksheet to relatively link to/reference cells in another without changing the format of the current worksheet. [email protected] Excel Discussion (Misc queries) 0 September 22nd 05 04:39 PM


All times are GMT +1. The time now is 07:14 PM.

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"