After Saveas need to show Original name

Matthew

New Member
Joined
Apr 16, 2002
Messages
23
Hi not shaw what I am doing wrong here, but please can someone help.

I am working in a file with lots of sheets, one of the sheets I need to save as a txt file and then carry on working in the original file. Its working to save the file but after it closes the copy file, it returns to a open txt file not the original file.

Hope this makes sence.

Here is part of the code.

Code:
Sheets("Swip").Visible = True
    Sheets("Swip").Select
    Rows("1:1").Select
    Selection.Delete Shift:=xlUp
    Range("A1").Select
    Sheets("Swip").Copy
    ThisWorkbook.SaveAs Filename:="S:\New Kopen Reports 2009\Bar Code Lables\Z1234567" & ".TXT", FileFormat:= _
        xlCSV
    ActiveWorkbook.Close False
    Sheets("Entry").Select
    Range("B4").Select


Thanks in advance
 
Last edited by a moderator:

Excel Facts

Excel motto
Not everything I do at work revolves around Excel. Only the fun parts.

Forum statistics

Threads
1,214,653
Messages
6,120,751
Members
448,989
Latest member
mariah3

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