Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,302
Default mkdir problem

Hi Keivn,

Try dropping the outer parentheses.

MkDir "C:\test\" & RIGHT(ActiveCell.Text, 4)

worked for me.



---
Regards,
Norman



"Keivn Green" wrote in message
...
When I try to use this command in a macro to create a directory that is
the
last for digits of the activecell it says " Wrong number of arguments or
invalid property assignment."
Here is the line in the code..
MkDir ("C:\test\" & RIGHT(ActiveCell.Text, 4))

If the active cell says 12345678 teh it should make a directory called
c:\test\5678

Any ideas why this doesnt work?



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
Started out as an Access problem. Now an Excel problem RobertM Excel Discussion (Misc queries) 2 April 26th 06 07:30 PM
mkdir command in excel 2003 on XP SP2 zvi carmi via OfficeKB.com New Users to Excel 2 May 25th 05 12:45 PM
Shell "mkdir" Robin Clay[_3_] Excel Programming 2 August 4th 04 04:30 PM
MkDir error Eric Excel Programming 3 May 17th 04 08:58 PM
Problem when multipple users access shared xl-file at the same time, macrocode for solve this problem? OCI Excel Programming 0 May 16th 04 10:40 PM


All times are GMT +1. The time now is 08:30 AM.

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

About Us

"It's about Microsoft Excel"