Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I've got an Access database that produces an "Active Project" report.
It creates a new worksheet tab for every project we have running in our office. I chose to give the worksheet the same name as the project, thus allowing for easy browsing when a user opens the Excel. Now I want to create a macro that copies the worksheet over to a PowerPoint slide. I am using this line of code: Worksheets("Test_Project").Range("B1:P28").CopyPic ture Appearance:=xlPrinter, Format:=xlPicture But notice I had to hard code "Test_Project" as the Worksheet name. I don't want to hard code the name because our project list is always changing. I could use "ActiveSheet.Name", but then I would have to run the macro on every worksheet. Is there a way I can tell Excel to select the first worksheet (whatever that may be called) and then go on to the second, and third -- ignoring the tab names and caring only about the tab position? Thanks, Chris |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
View All Sheet Names in Workbook at Once | Excel Discussion (Misc queries) | |||
Using Sheet names & Workbook names in VBA coding | Excel Programming | |||
Iterating rows, calc cells in dynamic sheet | Excel Programming | |||
Retrieving the sheet names of another workbook | Excel Programming | |||
Iterating through workbook capturing text | Excel Programming |