LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Assignment to Constant Not Permited


I'm trying to use Goal Seek on a range, rather than use it line by
line.
I wrote the following but I keep getting "Assignment to Constant Not
Permitted."

I performed the Goal Seek using the recorder, and I used that as my
starting point. I thought it'd be super-green.

Any ideas?


Sub DateMacro1()
Dim Cell As Range

For Each Cell In Range("H8:H30")
With Cell
If Cell = "" Then Cell.Offset(, 1).GoalSeek(5, Cell.Offset(0,
1)) = True

End With
Next
End Sub


--
hindsight
------------------------------------------------------------------------
hindsight's Profile: http://www.excelforum.com/member.php...fo&userid=6360
View this thread: http://www.excelforum.com/showthread...hreadid=397817

 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Excel assignment Trish Excel Discussion (Misc queries) 0 October 14th 08 04:44 AM
Constant loan payments vs. constant payments of principal lalli945 Excel Worksheet Functions 3 December 20th 06 10:33 PM
VBA - Cell Assignment ajocius[_7_] Excel Programming 3 July 27th 05 03:57 PM
Key Assignment Log Norma Excel Discussion (Misc queries) 0 May 12th 05 04:10 PM
Assignment to constant not permitted Grace[_4_] Excel Programming 12 June 12th 04 11:47 PM


All times are GMT +1. The time now is 09:41 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"