Consulting

Results 1 to 3 of 3

Thread: Solved: Hash Problems

  1. #1
    VBAX Master paulked's Avatar
    Joined
    Apr 2006
    Posts
    1,007
    Location

    Question Solved: Hash Problems

    I am creating file names using the following code:
    [vba]
    ActiveWorkbook.SaveAs Filename:=("C:\Pyranha\Records\" & LYear & "\" & _
    "Week " & LWeek & "\" & Range("F1").Text & "\" & Range("A1").Text & ".XLS")
    [/vba]
    The contents of F1 is always a text value and the contents of A1 is numerical.

    I'm having a problem with the numerical value in A1...

    If the value is small enough to be viewed in the cell on screen, no problem. But if it is too large and the screen is showing #### then the file is saved as ####.XLS.

    Any advice please?

    Best Regards

    Edited 30-May-07 by geekgirlau. Reason: insert line breaks
    Semper in excretia sumus; solum profundum variat.

  2. #2
    Moderator VBAX Master geekgirlau's Avatar
    Joined
    Aug 2004
    Location
    Melbourne, Australia
    Posts
    1,464
    Location
    Have you tried using Range("A1").Value instead of .Text?

  3. #3
    VBAX Master paulked's Avatar
    Joined
    Apr 2006
    Posts
    1,007
    Location
    Super!

    Many thanks
    Semper in excretia sumus; solum profundum variat.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •