+ Reply to Thread
Results 1 to 4 of 4

VBA sub for sheet with codename

  1. #1
    Forum Contributor
    Join Date
    10-31-2013
    Location
    London, England
    MS-Off Ver
    Excel 2003
    Posts
    221

    VBA sub for sheet with codename

    Hi can anyone help please I have this sub but one of the sheets has a code name so in the VBA editor it says ModelCoeff(ModelCoeff) For the sheet name how do I change this sub so it refers to the code name sheet and not sheet 5 ?

    Please Login or Register  to view this content.
    Last edited by alansidman; 04-05-2016 at 03:55 PM.

  2. #2
    Forum Expert
    Join Date
    10-09-2014
    Location
    Newcastle, England
    MS-Off Ver
    2003 & 2013
    Posts
    1,986

    Re: VBA sub for sheet with codename

    Change your Sub to:

    Please Login or Register  to view this content.
    ps in your posts you need to wrap any code in the hashtag option
    If someone has helped you then please add to their Reputation

  3. #3
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,910

    Re: VBA sub for sheet with codename

    Code Tags Added
    Your post does not comply with Rule 3 of our Forum RULES. Use code tags around code.

    Posting code between [CODE]Please [url=https://www.excelforum.com/login.php]Login or Register [/url] to view this content.[/CODE] tags makes your code much easier to read and copy for testing, it also maintains VBA formatting.

    Highlight your code and click the # icon at the top of your post window. More information about these and other tags can be found at http://www.excelforum.com/forum-rule...rum-rules.html



    (Because you are new to the forum, I have added them for you today. Please take a few minutes to read all Forum Rules and comply in the future.)
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  4. #4
    Forum Contributor
    Join Date
    10-31-2013
    Location
    London, England
    MS-Off Ver
    Excel 2003
    Posts
    221

    Re: VBA sub for sheet with codename

    Thanks that worked I will use tags next time

+ 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. [SOLVED] Sheet Codename
    By Ravana in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-11-2015, 12:34 PM
  2. [SOLVED] Selecting sheet by codename in a multi sheet code
    By jshaw82 in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 03-18-2013, 10:46 AM
  3. trying to use sheet CodeName to list all sheet names in a workbook
    By neowok in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-12-2012, 12:06 PM
  4. sheet codename issue
    By elprup in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-18-2010, 02:37 PM
  5. Get sheet (CodeName) not .Name
    By Rick_Stanich in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 01-14-2010, 01:54 PM
  6. Referencing a sheet's codename
    By LAF in forum Excel General
    Replies: 8
    Last Post: 09-18-2009, 10:00 AM
  7. Use of sheet codename in codeline - How?
    By Jim May in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-01-2006, 11:30 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