How to manipulate the codename of Thisworkbook and sheet in Excel

Updated on workplace 2024-04-04
14 answers
  1. Anonymous users2024-02-07

    As long as you have permissions to the file, there's no question of how you log in to your computer.

    What are the permissions? Read, write, rewrite, traverse the file list, do not have the permission to delete, full control, etc.

    These won't work for your files.

    So Area A and Area B are broken.

    Let's talk about modules and thisworkbook.

    When I write ** myself, I often put it in thisworkbook.

    The standard module, which is what we use to "plug in-

    Module "Module 1", "Module 2", these standard modules do not have their own unique methods and events except for some automatic events such as auto open. The public variables declared in the standard modules can be accessed and called directly by all other modules.

    For example, I have a ** that processes the data in the sheet1 table, so this ** can be directly placed in the sheet1 module. And I have an event that I want to use workbook open, so this event must be placed in the thisworkbook module. So what module to write in depends on what methods and events you need to use.

    In general, there are some common methods that we can put in a standard module. Custom functions must be placed in a standard module.

    So the content of your question is specifically placed in **, not necessary, so the problem of the module and thisworkbook has been solved.

    So the questions you guessed, I'm sorry I didn't hit all of them.

    According to what you said, it should be related to the macro security permissions of the computer itself, and you can start from this aspect.

    After all, I don't have your environment, so it's difficult to test.

  2. Anonymous users2024-02-06

    This problem is too vague, and the programming problems are all specific problems and analysis.

  3. Anonymous users2024-02-05

    The name of the worksheet is its name.

    I'm guessing you're asking about the difference between name and codename, right?

    For example, in Engineering Explorer.

    sheet1 (payroll).

    sheet1 is codename,"Payroll"is its name, and you also need to pay attention to sheets(1) and sheets("1").

    The former has the index number in parentheses, and the latter is name

  4. Anonymous users2024-02-04

    height = cells(i, 1).height - 2

    width = cells(i, 2).width - 2

    **All of them are numbered in column C Modify them by yourself cells(i,3) 3 represents Mindan column C and 4 generations of Qin take the table D column.

  5. Anonymous users2024-02-03

    Take a look at the worksheet with wood and sheet2, note that this sheet2 is the worksheet table name displayed in the foreground, which is case-sensitive and space-sensitive.

  6. Anonymous users2024-02-02

    The reason for this problem is that the specified sheet cannot be found, and the sheet named "sheet2" does not exist.

  7. Anonymous users2024-02-01

    It is recommended to check the name of the following ** and whether there is "sheet2".

  8. Anonymous users2024-01-31

    "sheet1", "sheet3", "sheet5")).copy

    One sentence will do, put one of them"sheet1", "sheet3", "sheet5"Swap it out with the worksheet name you need.

  9. Anonymous users2024-01-30

    One of your excels is equivalent to a notebook, then sheet1, sheet2, and sheet3 are equivalent to separate functions that you can't achieve if you don't set functions in c3. If you set up a function, you can.

  10. Anonymous users2024-01-29

    sub Add file().

    dim aa =after:=sheets(a)

    worksheets(a + 1).name = "The name you want abc"

    end sub

  11. Anonymous users2024-01-28

    Add a new one and then change the name.

    For example="abc"

  12. Anonymous users2024-01-27

    Instead of using macros, create a new sheet and rename it to the name you want

    1.Click on a sheet label (e.g., click the Worksheet command on the Insert menu) and the newly inserted worksheet will precede sheet2.

    2.Rename: Double-click the sheet tab to change it.

  13. Anonymous users2024-01-26

    Save it as. XLAM format, save to the system default folder, and then go to Development Tools - Add-ons - check it in the available loading macros, and OK.

  14. Anonymous users2024-01-25

    Ah search view and I can module of the mulberry card on the year enough roil on the company's tube.

Related questions
7 answers2024-04-04

Are you going to get into a VBA? Or do you want to do VBA's **? >>>More

12 answers2024-04-04

It can't be done with the setup method. However, it can be implemented using VBA macros**. >>>More

6 answers2024-04-04

Press Ctrl and F, enter your name, and press Enter.

9 answers2024-04-04

I want to enter numbers in the same 1 cell.

It's not okay to display text, but it can be done. >>>More

16 answers2024-04-04

Enter the form in Electron**"001"This kind"0"The serial number data at the beginning of the word is only entered in text format. Here's how: >>>More