+ Reply to Thread
Results 1 to 2 of 2

name worksheet by usıng a varible

  1. #1
    Forum Contributor
    Join Date
    08-10-2006
    Posts
    723

    Exclamation name worksheet by usıng a varible

    hi

    i am trying to use a variable to open a new worksheet ıf there ıs a value ın that cell and name ıt as that variable

    thanks

  2. #2
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,570
    Try:
    IF sheets("sheetx").range("A?").value<>"" then
    ActiveWorkbook.SaveAs _
    Filename:=sheets("sheetx").range("A?").value, _
    etc.
    ELSE
    something...
    END IF
    Ben Van Johnson

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1