Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Code help
What is wrong with the code below (<<<indicates error)
Worksheets("UniqueValues").Visible = True Worksheets("UniqueValues").Select Dim TargetValue As Range Set TargetValue = Sheets("UniqueValues").Range("A1") TargetValue.Select Do Until ActiveCell.Value = "" ActiveCell.Copy Worksheets("Name SD").Range("C2") MasterFormulas.MasterFormula Worksheets("Report").PrintOut Copies:=1, Collate:=True TargetValue.Offset(1, 0).Select Set TargetValue = ActiveCell.Range <<<<error here Loop ' Worsheets("UniqueValues").Visible = False End Sub -- Thanks Shawn |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Code help
You don't need the .Range, try
Set TargetValue = Activecell John |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
Code help
That didn't do it???
-- Thanks Shawn " wrote: You don't need the .Range, try Set TargetValue = Activecell John |
#4
Posted to microsoft.public.excel.programming
|
|||
|
|||
Code help
Shawn,
Did you try Activecell.Value? "Shawn" wrote in message ... That didn't do it??? -- Thanks Shawn " wrote: You don't need the .Range, try Set TargetValue = Activecell John |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
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 | |||
run code on opening workbook and apply code to certain sheets | Excel Programming | |||
stubborn Excel crash when editing code with code, one solution | Excel Programming | |||
VBA code delete code but ask for password and unlock VBA protection | Excel Programming |