Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Visual Basic > VB 6 Visual Basic 6 > VB How-To
| Search | Today's Posts | Mark Forums Read
VB How-To Ask your "How do I do this with VB?" questions in this forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the VB How-To section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old July 30th, 2013, 06:41 AM
Registered User
Points: 11, Level: 1
Points: 11, Level: 1 Points: 11, Level: 1 Points: 11, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jul 2013
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Smile Save as.csv ( the macro- it doesnt run)

hi people,

my macro to save each sheet (50sheets) of the excelfile as a csv file. Each sheet has a name which i want the macro to use to name the csv file. It doesnt run (it would be a wonder if it did, so seeking your help to put it on track)

HTML Code:
Application.Sheets(c:\M-C\Hist\ronnie30.xlsx).Select
     Application.Sheets(Sheet_Name)
Application.DisplayAlerts = False 
ActiveWorkbook.SaveAs Filename:=filename(sheetname1-50), FileFormat:=xlCSV, _
     CreateBackup:=False
     CreateBackup:=False
    Application.DisplayAlerts = False
    
repeat every 60 min
 
Old July 31st, 2013, 01:28 AM
Registered User
Points: 11, Level: 1
Points: 11, Level: 1 Points: 11, Level: 1 Points: 11, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jul 2013
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hello there,
Ok you folks probably were too busy to tackle the above macro. No matter. Anyway thats been resolved.

May i request for your time and knowledge in editting this small macro ? would be immensely grateful.

this macro does the following

insert row 2 in sheet 2 (only on sheet two , ie not on all sheets of the workbook)
copy paste row 1 onto row 2 of sheet two
(repeat every 75 minutes. It doesnt open, save or close the workbook)


HTML Code:
Sub insert_row()
Selection.Insert Shift:=xlDown
Copy ([row1])
Paste ([row2])
End Sub

but after pasting cell1 the macro gives a 400 error.

can u kindly help with the macro

thanks in advance
 
Old August 1st, 2013, 05:49 AM
Registered User
Points: 11, Level: 1
Points: 11, Level: 1 Points: 11, Level: 1 Points: 11, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jul 2013
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Smile

Brother,

Yo man. Nobody have the time to edit the small macro. Thats sad, man.

request someone to put that dashed macro thingy on tracks

thanks bro




Similar Threads
Thread Thread Starter Forum Replies Last Post
go-pear.bat doesnt run. help. ZanderFly BOOK: Beginning PHP 5.3 0 August 15th, 2011 11:09 AM
save .csv with newline character sansircar ASP.NET 1.0 and 1.1 Professional 1 November 19th, 2008 03:50 AM
.aspx.vb file doesnt run arabuafef ASP.NET 2.0 Professional 7 March 18th, 2008 12:20 PM
Save a file in CSV format thru Excel VBA macro roli2712 Excel VBA 1 July 11th, 2007 03:05 AM
save as CSV file cdsniti Java Databases 1 December 21st, 2005 07:26 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.