Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Running Excel from VFP App
Message
From
06/05/2006 11:21:16
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
To
06/05/2006 09:45:28
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01119766
Message ID:
01119873
Views:
17
>Thanks a lot for your help, but I allready done it....
>
>This is the final code, I wonder if you say any comments about it....

No comments about the code, but you can make your code more readable by using the < PRE > tag at the beginning, and < /PRE > at the end (without the spaces). Otherwise, spaces and tabs disappear.

See the result below; or press "Reply" to see how it was done:
		if !IsClassRegistered("Excel.Application")
			messagebox("Excel is not installed")
		else
			a="C:\estaib\archivos\abril2006.xls"
			b="C:\estaib\archivos\rankingabril2006.xls"
			oExcel = createobject("Excel.application")
			with oExcel
				 .Workbooks.Open(a)
				 .visible = .t.
				 .ActiveWorkBook.ActiveSheet.Range("E:E").Numberformat = "#,##0"
				 .ActiveWorkBook.ActiveSheet.Range("F:F").Numberformat = "#,##0.00"
		 		 .ActiveWorkBook.ActiveSheet.Range("A1:F1").Font.Bold=.t.
...
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform