somebody113
New Member
- Joined
- Apr 28, 2011
- Messages
- 14
Hey guys,
I'm using the following macro to do a simple export to csv, but for some reason its not working = /
This macro is unique in the fact that it DOES NOT EXPORT BLANK ROWS
I've attached the orig file to my FTP, I'm just trying to export the information in sheet "Broad"
http://www.jyxsaw.com/ZCOU/ACdem.xlsm
Ideas/thoughts? Thanks for the help in advance
I'm using the following macro to do a simple export to csv, but for some reason its not working = /
This macro is unique in the fact that it DOES NOT EXPORT BLANK ROWS
Code:
Option Explicit
Sub Images1()
Dim LR As Long
Application.ScreenUpdating = False
Application.DisplayAlerts = False
With Sheets("broad")
LR = .Range("A:A").Find(WorksheetFunction.Max(.Range("A:A")), LookIn:=xlValues, LookAt:=xlWhole).Row
.Range("A1:A" & LR).Copy 'edit this range as needed
End With
Sheets.Add
Range("A1").PasteSpecial
ActiveSheet.Move
ActiveWorkbook.SaveAs Filename:="C:\Users\k\Dropbox\d1.csv", FileFormat:=xlCSV, CreateBackup:=False
ActiveWorkbook.Close False
Application.ScreenUpdating = True
End Sub
I've attached the orig file to my FTP, I'm just trying to export the information in sheet "Broad"
http://www.jyxsaw.com/ZCOU/ACdem.xlsm
Ideas/thoughts? Thanks for the help in advance