Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
Mia Mia is offline
external usenet poster
 
Posts: 101
Default Change folder to save in

Hi,

I'm using a vba-macro to automaticly save pdf-files at a specified folder.
Now I want the folder to update depending on what period Im in.
I have following code but I dont get i to work

Dim Rapp As String
Rapp = ActiveSheet.Range("B3")

FilenameStr = ("http://srv.he.com/ekon/Fakturor/A/2010/ & Rapp/") & _
ActiveSheet.Range("b8").Value & " " & ".pdf"

Do anyone know how to solve this I'll be wery grateful!


--
Best regards
Mia
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 8,520
Default Change folder to save in

Try

Dim Rapp As String
Rapp = ActiveSheet.Range("B3")

FilenameStr = "http://srv.he.com/ekon/Fakturor/A/2010/" & _
Rapp & "/" & ActiveSheet.Range("b8").Value & " " & ".pdf"

--
Jacob


"Mia" wrote:

Hi,

I'm using a vba-macro to automaticly save pdf-files at a specified folder.
Now I want the folder to update depending on what period Im in.
I have following code but I dont get i to work

Dim Rapp As String
Rapp = ActiveSheet.Range("B3")

FilenameStr = ("http://srv.he.com/ekon/Fakturor/A/2010/ & Rapp/") & _
ActiveSheet.Range("b8").Value & " " & ".pdf"

Do anyone know how to solve this I'll be wery grateful!


--
Best regards
Mia

  #3   Report Post  
Posted to microsoft.public.excel.programming
Mia Mia is offline
external usenet poster
 
Posts: 101
Default Change folder to save in

It worked, thank you so much!!!

Have a nice wekend!


--
Best regards
Mia


"Jacob Skaria" skrev:

Try

Dim Rapp As String
Rapp = ActiveSheet.Range("B3")

FilenameStr = "http://srv.he.com/ekon/Fakturor/A/2010/" & _
Rapp & "/" & ActiveSheet.Range("b8").Value & " " & ".pdf"

--
Jacob


"Mia" wrote:

Hi,

I'm using a vba-macro to automaticly save pdf-files at a specified folder.
Now I want the folder to update depending on what period Im in.
I have following code but I dont get i to work

Dim Rapp As String
Rapp = ActiveSheet.Range("B3")

FilenameStr = ("http://srv.he.com/ekon/Fakturor/A/2010/ & Rapp/") & _
ActiveSheet.Range("b8").Value & " " & ".pdf"

Do anyone know how to solve this I'll be wery grateful!


--
Best regards
Mia

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
Update workbooks in folder, new name and save in new folder [email protected] Excel Programming 4 June 20th 08 09:39 AM
Can I change Excel 2003 default "save to" folder? Gene New Mexico Setting up and Configuration of Excel 1 May 9th 07 11:26 PM
Save file in a new folder, but create folder only if folder doesn't already exist? nbaj2k[_40_] Excel Programming 6 August 11th 06 08:41 PM
can“t change folder when open or save stian Excel Discussion (Misc queries) 0 April 21st 06 08:07 PM
Need code to save file to new folder, erase from old folder Ron M. Excel Discussion (Misc queries) 1 February 24th 06 06:02 PM


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