Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Software > Application Center Usage > VBA and Excel
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 1 Topic 567 of 610
Post > Topic >>

VBA and Excel

by =?Utf-8?B?TS4gSHVzc2Fpbmk=?= <M. Hussaini@[EMAIL PROTECTED] Dec 12, 2006 at 07:59 AM

I have the following code which I am using in BusinessObjects. The code is 
contained in a procedure that saves the BusinessObjects file as an Excel
File.

What I want to do is format the Excel file before saving it. Does anybody 
have an idea as to how I can programatically open and modify the 
ActiveDo***ent in VBA and format it tru VBA?

Thanks

M. Hussaini


On Error GoTo Emsg
  
  Dim doc As Do***ent
  Dim body As String
  Dim Re****tName As String
  Dim locPath As String
  Dim objExcel As Object
  Dim myObjExcel As Excel.Worksheet
  Dim myObjWorkBook As Excel.Workbooks
  
  
  dDate = Format((Now() - 27), "mmmm dd, YYYY")
   
  Set doc = ActiveDo***ent
  doc.Refresh
  
  
  locPath = "\\Fpptc01vgc02\O_drive\Sales\DomSales\Private\Sales
Re****ting\"
  Re****tName = ActiveDo***ent.Name & ".xls"
  
'-----------------------------------------------------
  'Deleteing  old re****t
  '------------------------------------------------------------
  
  'Kill locPath & "\" & Re****tName & ".xls"

  '-----------------------------------------------------
  'Saving  re****t
  '------------------------------------------------------------

  doc.SaveAs (locPath & "\" & Re****tName & ".xls")
 




 1 Posts in Topic:
VBA and Excel
=?Utf-8?B?TS4gSHVzc2Fpbmk  2006-12-12 07:59:00 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Tue Dec 2 0:02:11 CST 2008.