Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default syntax for filename:=


can someone please help me with the proper syntax.

this is what i have


Dim myfile As Variant
Dim mypath As Variant
mypath = "\\Server1\Users\jhocking\My Documents\"
myfile = CStr(TextJobID.Value)

ActiveWorkbook.SaveAs Filename:="mypath & myfile & ".xls"

--
jhahe
-----------------------------------------------------------------------
jhahes's Profile: http://www.excelforum.com/member.php...fo&userid=2359
View this thread: http://www.excelforum.com/showthread.php?threadid=47345

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default syntax for filename:=

ActiveWorkbook.SaveAs Filename:=mypath & myfile & ".xls"

--
Regars,
Tom Ogilvy

"jhahes" wrote in
message ...

can someone please help me with the proper syntax.

this is what i have


Dim myfile As Variant
Dim mypath As Variant
mypath = "\\Server1\Users\jhocking\My Documents\"
myfile = CStr(TextJobID.Value)

ActiveWorkbook.SaveAs Filename:="mypath & myfile & ".xls""


--
jhahes
------------------------------------------------------------------------
jhahes's Profile:

http://www.excelforum.com/member.php...o&userid=23596
View this thread: http://www.excelforum.com/showthread...hreadid=473457



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
Cell("filename") doesn't update to new filename when do save as. Louis Excel Worksheet Functions 2 March 22nd 07 07:27 PM
set filename to <filename-date on open bob engler Excel Worksheet Functions 2 July 13th 06 05:11 AM
VBA - Syntax filename rangename for vlookup formula Thomas[_18_] Excel Programming 4 December 3rd 04 01:42 AM
Get filename Tang[_2_] Excel Programming 1 August 24th 04 04:17 PM
Saving filename same as import filename Matt Excel Programming 4 February 24th 04 03:01 PM


All times are GMT +1. The time now is 10:53 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"