Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Disregard 1st question, I found the solution in another post.
New question and pretty simple one (but not for me... Krikee). How do I jump to or select a specific sheet in my workbook so my macro will always run on that one sheet. Sheets("Code Master").Activate Sheets("Code Master").Select Any help would be appreciated. Thanks! -Wesley "Wester" wrote: Hi, Struggling with the command/macro to copy all sheet names in my workbook to single column on a 'master' sheet. Any help would be apprecieted. -Wesley |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Wester
Worksheets("Sheet1").Activate But bear in mind in most cases to work on a sheet you don't need to select it, I always assign a variable to it first to stop having to use the full qualifier each time. This is also safer to ensure your code works in the correct range. (By default it also ensures you get an intellisense list of objects and methods, which is handy So Sub test() Dim wks As Worksheet Set wks = Worksheets("Sheet3") With wks .Range("A1").Value = "Nick did this" .Columns(1).AutoFit .Name = "Nicks Sheet" .PageSetup.LeftFooter = "My Left Foot" End With End Sub Does all you want without selecting or activating. (Any selection or activation takes time and needs you to stop the screen flashing with application.screenupdating=false) -- HTH Nick Hodge Microsoft MVP - Excel Southampton, England DTHIS www.nickhodge.co.uk "Wester" wrote in message ... Disregard 1st question, I found the solution in another post. New question and pretty simple one (but not for me... Krikee). How do I jump to or select a specific sheet in my workbook so my macro will always run on that one sheet. Sheets("Code Master").Activate Sheets("Code Master").Select Any help would be appreciated. Thanks! -Wesley "Wester" wrote: Hi, Struggling with the command/macro to copy all sheet names in my workbook to single column on a 'master' sheet. Any help would be apprecieted. -Wesley |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
copy all sheet tab names of a file in a cell | Excel Discussion (Misc queries) | |||
Macro - Copy Table Column & Row Names When Codition Is Met | Excel Discussion (Misc queries) | |||
copy column and header names from existing spreadsheet to new spre | New Users to Excel | |||
Get other sheet names into a column | Excel Worksheet Functions | |||
how do i print a column containing 150 names on 1 sheet of paper . | Excel Discussion (Misc queries) |