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 > Access Macros > Ex****t Excel D...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 1 Topic 5656 of 5947
Post > Topic >>

Ex****t Excel Data

by =?Utf-8?B?am9hbm5lbGU3MQ==?= <joannele71@[EMAIL PROTECTED] Jul 22, 2008 at 12:02 PM

Hi

I am trying to write a macro to ex****t my data in Excel as a text file. 
The 
followings are my codes.  However, the macro works only when I am running
it 
manually on Excel.  The macro fails to run when I schedule it to run.  It 
stops when the Ex****t window pop up.  What should I change in my macro to 
make it works?

Sub testEX****T()

Workbooks.Open(Filename:="c:\FLATFILE.XLA").RunAutoMacros Which:= _
        xlAutoOpen
    
Workbooks("test.xls").Activate
Sheets("sheet1").Select

Range("A6").End(xlDown).Select
 ActiveCell.Offset(0, 4).Select
 anchor_cell2 = ActiveCell.Address
 Range("A6", anchor_cell2).Select

Application.SendKeys ("c:\test.txt~")

Application.SendKeys ("Y~")

 Application.Run Macro:=Range( _
       "[FLATFILE.XLA]FLATFILE!mcp01.FixedFieldEx****t")

End Sub


Thanks
Joanne
 




 1 Posts in Topic:
Export Excel Data
=?Utf-8?B?am9hbm5lbGU3MQ=  2008-07-22 12:02:02 

Post A Reply:
  Go here to Signup

AddThis Feed Button


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

Contact
tan12V112 Fri Nov 21 13:47:14 CST 2008.