Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi Excel Gurus,
I want to change this hard coding macro with variable: Sub test() Range("I2").Select Selection.Copy Workbooks.Add ActiveSheet.Paste Application.CutCopyMode = False ChDir _"C:\Documents and Settings\Jeffry Husman\My Documents\Excel Workbook\Macro Exercise" ActiveWorkbook.SaveAs Filename:= _"C:\Documents and Settings\Jeffry Husman\My Documents\Excel Workbook\Macro Exercise\jeff1.xls" _, FileFormat:=xlNormal, Password:="", WriteResPassword:="", _ ReadOnlyRecommended:=False, CreateBackup:=False ActiveWindow.Close I want to be able to make the range add automatically from range (I2) up to Range (I500) and save the file name with jeff1 up to jeff500. Thanks in advance |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Help make a macro variable | Excel Discussion (Misc queries) | |||
Trying to make Date Range variable in VBA SQL Query | Excel Programming | |||
'ActiveWorkbook.Names.Add Name:' how to make range variable? | Excel Programming | |||
setting a range variable equal to the value of a string variable | Excel Programming | |||
Problem trying to us a range variable as an array variable | Excel Programming |