+ Reply to Thread
Results 1 to 2 of 2

Before run code Check first if sheet name exist or not

  1. #1
    Forum Contributor HaroonSid's Avatar
    Join Date
    02-28-2014
    Location
    india
    MS-Off Ver
    Excel 2013
    Posts
    2,080

    Before run code Check first if sheet name exist or not

    hi,
    i am suing below to copy data and paste another workbook

    Please Login or Register  to view this content.
    before run this code i want to check that if a particular sheet exist on the workbook with name "Vouchers - Purchase Transactions With StockItems.XLSM

    ( workbook name should be = active workbook Sheets("entry").range("c5").value )

    if sheet exist (sheet = Sheets("entry").range("c5").value) then first run another code if doesnt exist then run as its main fuction

    thank you
    Use Code-Tags for showing your code :
    Please mark your question Solved if there has been offered a solution that works fine for you
    If You like solutions provided by anyone, feel free to add reputation using STAR *

  2. #2
    Forum Expert
    Join Date
    02-14-2009
    Location
    .
    MS-Off Ver
    ................
    Posts
    2,840

    Re: Before run code Check first if sheet name exist or not

    Use your thread title as a Search term - a very common requirement with examples all over the place.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Check if sheet exist based on drop down list
    By oerberg in forum Excel General
    Replies: 3
    Last Post: 03-23-2016, 11:55 AM
  2. [SOLVED] VB Code to check if same number exist
    By rizmomin in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 10-19-2015, 05:57 PM
  3. [SOLVED] Check First IF Sheet Is Exist With The Name Of Cell K7 If exist Then run the code
    By HaroonSid in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 01-18-2015, 10:08 AM
  4. [SOLVED] check column headers against sheet names if sheet not exist create it
    By AkaTrouble in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-13-2015, 05:59 PM
  5. Replies: 0
    Last Post: 02-23-2014, 10:31 PM
  6. Function to check the sheet name exist or not based on sheet values
    By narendrabr in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 02-12-2014, 09:37 AM
  7. macro to check if a value exist in sheet and add it if it doesnt
    By RetroGun in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-01-2011, 02:35 AM

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