Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Thanks in advance for all your help. I have two questions.
Question 1: ------------- I want to change this: ActiveWorkbook.Names.Add Name:="MyRangeName", RefersTo:= _ "=Sheet7!B2:" & Cells(LastRow, LastColumn).Address to this: ActiveWorkbook.Names.Add Name:="MyRangeName", RefersTo:= _ "<VBA code for current worksheet name"&"!B2:" & Cells(LastRow, LastColumn).Address I want to get the VBA code for getting the current worksheet name and replace "sheet7" with the name of the current worksheet. Question 2: ------------- I want to run a vba function for all the worksheets in an excel file (or current workbook). I am looking to create a function some thing like this: For Every Worksheet Function MakeChaneges 'Run the function with name "make changes" Next can you help me with the code for the "For" "Next" Loop Thanks |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
split post code (zip code) out of cell that includes full address | Excel Discussion (Misc queries) | |||
Drop Down/List w/Code and Definition, only code entered when selec | Excel Worksheet Functions | |||
Shorten code to apply to all sheets except a few, instead of individually naming them, and later adding to code. | Excel Programming | |||
Protect Sheet with code, but then code will not Paste error. How do i get around this. Please read for explainations.... | Excel Programming | |||
Excel code convert to Access code - Concat & eliminate duplicates | Excel Programming |