Is it possible to create an automated invoice register in Excel?

marianewb

New Member
Joined
Nov 30, 2018
Messages
1
I'm supposed to create a platform that provides me with a .txt ansi formated file from my invoice register. Does anyone around here has any idea how to this? Or maybe even how to start learning how to format in ANSI for dummies from an invoice register created in excel?

I'm super new to using excel to begin with but i'm trying to figure out if i can't really learn this on my own of if I will need a programmer for this. :ROFLMAO::LOL:

Look forward to hearing back from ANYONE!
 

Excel Facts

Save Often
If you start asking yourself if now is a good time to save your Excel workbook, the answer is Yes
.
If I correctly understand your request, you are wanting to save an Excel sheet as a text file ?

These two macros will accomplish that. The text files are saved in the same location as the workbook. You will only need to run
one of these macros to create the text file. You choose which one although they both do the same thing ... Both macros save all sheets in the workbook
as a text. If you only require one sheet, the code can be ammended.

Code:
Option Explicit


Sub textSave()
Dim Ws As Worksheet, wsName As String
    Application.ScreenUpdating = False
    For Each Ws In ThisWorkbook.Worksheets
        wsName = Ws.Name
        Ws.Copy
        ActiveWorkbook.SaveAs Filename:=ThisWorkbook.Path & "\" & wsName & ".txt", FileFormat:=xlTextMSDOS, CreateBackup:=False
        ActiveWorkbook.Close False
    Next Ws
    Application.ScreenUpdating = True
End Sub





Sub Export_Sheets_To_Text_Files()
    Dim Ws          As Worksheet
    Dim strFile     As String
     
     
    With Application
        .ScreenUpdating = False
        For Each Ws In .ActiveWorkbook.Worksheets
            Ws.Copy
            strFile = ThisWorkbook.Path & "\" & Ws.Name & ".txt"
            .ActiveWorkbook.SaveAs Filename:=strFile, FileFormat:=xlText
            .ActiveWorkbook.Saved = True
            .ActiveWorkbook.Close
        Next Ws
        .ScreenUpdating = True
    End With
     
    MsgBox "Done...", 64
End Sub
 
Upvote 0

Forum statistics

Threads
1,214,985
Messages
6,122,606
Members
449,089
Latest member
Motoracer88

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top