Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default open *.csv file as *.xls makro


How to ask user about path and open synteza.csv file as column separate
view
like synteza.xls?

Workboks.Open open it only as csv.

I ask to makro of course.

Thanks and sory for fatal English

--
kajr
-----------------------------------------------------------------------
kajro's Profile: http://www.excelforum.com/member.php...fo&userid=2877
View this thread: http://www.excelforum.com/showthread.php?threadid=48469

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 59
Default open *.csv file as *.xls makro

Try this:

Dim fileToOpen As Variant
fileToOpen = Application.GetOpenFilename("CSV Files (*.csv), *.csv")
If fileToOpen = False Then
' user pressed cancel or some other error deal with it
End If
Workbooks.OpenText Filename:=fileToOpen, DataType:=xlDelimited, Comma:=True


"kajro" wrote:


How to ask user about path and open synteza.csv file as column separated
view
like synteza.xls?

Workboks.Open open it only as csv.

I ask to makro of course.

Thanks and sory for fatal English.


--
kajro
------------------------------------------------------------------------
kajro's Profile: http://www.excelforum.com/member.php...o&userid=28779
View this thread: http://www.excelforum.com/showthread...hreadid=484694


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
In Excel - Use Windows Explorer instead of File Open to open file KymY Excel Discussion (Misc queries) 1 August 5th 06 09:59 PM
Open a file do a macro ( made) and open next succesive file SVTman74 Excel Programming 5 April 21st 06 10:14 PM
Makro to Run on Open Workbook Rob Fenn[_2_] Excel Programming 1 October 5th 05 01:42 PM
Open File or Switch Between Windows if File is Open Ricky Pang Excel Programming 2 July 8th 05 05:51 AM
Open File or Switch Between Windows if File is Open Ricky Pang Excel Programming 0 July 2nd 05 08:41 PM


All times are GMT +1. The time now is 03:02 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"