Consulting

Results 1 to 4 of 4

Thread: Solved: rd_filename = Active.Workbook.Name

  1. #1

    Question Solved: rd_filename = Active.Workbook.Name

    Hi All,

    It's been a while since this beginner used VB, so go gently please.

    The statement....
    rd_filename = Active.Workbook.Name
    ....is not recognised by VB, it comes up with "run time error 424".

    I assume (from looking at help) that the reason is that I need a fuller line of code, like Application.Active.Workbook.Name

    Anyone know what this is, please.


    Just for info, I want to....
    do something in active file
    capture filename from active file
    goto a specific file and do something
    then goto 1st file (hence need filename) and do something else


    Thanks All.

  2. #2

    Red face

    Solved. D'oh!

  3. #3
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    I presume you used

    rd_filename = ActiveWorkbook.Name

    Please confirm fr the archive.
    ____________________________________________
    Nihil simul inventum est et perfectum

    Abusus non tollit usum

    Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
    James Thurber

  4. #4

    Post

    Yes, that is correct.
    I had inserted an unneccessary . character.

Posting Permissions

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