Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Save as Macro working for one computer but not the other?


I have the following macro.

ACTIVEWORKBOOK.SAVEAS \"K:\COMM\INVEST\DAILY NBV NEW CALCULATIONS\\"
\"JAMES-DV\" & RIGHT(DATE, 2) & MID(DATE, 4, 2) & LEFT(DATE, 2

This macro is working fine on my computer but not on my colleague
computer. Anybody know what's wrong with the above code.

Thanks in advanc

--
Infinit
-----------------------------------------------------------------------
Infinity's Profile: http://www.excelforum.com/member.php...fo&userid=3272
View this thread: http://www.excelforum.com/showthread.php?threadid=52746

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,302
Default Save as Macro working for one computer but not the other?

Hi Infinity,

What error message is received on the problematic computer?


---
Regards,
Norman



"Infinity" wrote in
message ...

I have the following macro.

ACTIVEWORKBOOK.SAVEAS \"K:\COMM\INVEST\DAILY NBV NEW CALCULATIONS\\" &
\"JAMES-DV\" & RIGHT(DATE, 2) & MID(DATE, 4, 2) & LEFT(DATE, 2)

This macro is working fine on my computer but not on my colleagues
computer. Anybody know what's wrong with the above code.

Thanks in advance


--
Infinity
------------------------------------------------------------------------
Infinity's Profile:
http://www.excelforum.com/member.php...o&userid=32725
View this thread: http://www.excelforum.com/showthread...hreadid=527462



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Save as Macro working for one computer but not the other?


Is the K drive path valid on the problem computer? Intentional tha
there isn't an extension such as .xls? Tried it without the hyphen?
Tried it without the date values?

i.e. Try simplifying the problem by testing with simpler path an
filenames. If you can get it working with a simpler example on th
problem computer, then you can progressively make it more complex unti
you identify the part that makes it fall over, and then post tha
problem if it doesn't make sense

--
John Jame
-----------------------------------------------------------------------
John James's Profile: http://www.excelforum.com/member.php...fo&userid=3269
View this thread: http://www.excelforum.com/showthread.php?threadid=52746

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Save as Macro working for one computer but not the other?


This is the error i received :

RUN-TIME ERROR ‘1004’

THE FILE COULD NOT BE ACCESSED. TRY ONE OF THE FOLLOWING:

MAKE SURE THE SPECIFIED FOLDER EXISTS.
MAKE SURE THE FOLDER THAT CONTAINS THE FILE IS NOT READ-ONLY.
MAKE SURE THE FILE NAME DOES NOT CONTAIN ANY OF THE FOLLOWING
CHARACTERS: < ? [ ] : | OR *
MAKE SURE THE FILE/PATH NAME DOESN’T CONTAIN MORE THAN 218

I also made an attachment of the error message in a doc file.


+-------------------------------------------------------------------+
|Filename: error.doc |
|Download: http://www.excelforum.com/attachment.php?postid=4539 |
+-------------------------------------------------------------------+

--
Infinity
------------------------------------------------------------------------
Infinity's Profile: http://www.excelforum.com/member.php...o&userid=32725
View this thread: http://www.excelforum.com/showthread...hreadid=527462

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Save as Macro working for one computer but not the other?


oh... and i just identified where the error came from. It is this
problem

& RIGHT(DATE, 2) & MID(DATE, 4, 2) & LEFT(DATE, 2)

If i remove this then i can save but i need the dates as the file is
maintain of a daily basis and as figures changes. And asking people to
maintain file name is a big problem a they have their own naming
methods. I dont want this problem to happen.

Thanks again.


--
Infinity
------------------------------------------------------------------------
Infinity's Profile: http://www.excelforum.com/member.php...o&userid=32725
View this thread: http://www.excelforum.com/showthread...hreadid=527462



  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,302
Default Save as Macro working for one computer but not the other?

Hi Infinity,

With the workbook in question active, run the problematic code
When the code errors, go to the VBE and select the project in the Project
Explorer Window

Hit the reset button and look at the Tools | References list

Look for any references marked as "MISSING".

Either uncheck the reference or, if the reference is needed, try the browse
button to locate the library,


---
Regards,
Norman




"Infinity" wrote in
message ...

oh... and i just identified where the error came from. It is this
problem

& RIGHT(DATE, 2) & MID(DATE, 4, 2) & LEFT(DATE, 2)

If i remove this then i can save but i need the dates as the file is
maintain of a daily basis and as figures changes. And asking people to
maintain file name is a big problem a they have their own naming
methods. I dont want this problem to happen.

Thanks again.


--
Infinity
------------------------------------------------------------------------
Infinity's Profile:
http://www.excelforum.com/member.php...o&userid=32725
View this thread: http://www.excelforum.com/showthread...hreadid=527462



  #7   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Save as Macro working for one computer but not the other?


:) Just solve the problem.



Thanks Norman Jones :)


--
Infinity
------------------------------------------------------------------------
Infinity's Profile: http://www.excelforum.com/member.php...o&userid=32725
View this thread: http://www.excelforum.com/showthread...hreadid=527462

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
Working with Functions on French Computer Cazzy123 Excel Worksheet Functions 3 August 7th 08 11:17 AM
Formula only working for 1 user on 1 computer shebe Excel Discussion (Misc queries) 3 February 29th 08 06:01 PM
Keyboard shortcut not working when I copy macro to another computer telewats New Users to Excel 1 January 9th 06 08:52 PM
Sendmail not working when computer is locked [email protected] Excel Programming 0 August 31st 05 10:29 AM
DB not working on other computer lyndac New Users to Excel 1 July 16th 05 08:45 PM


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