Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11
Default Newbie stuck on Passing a Variable into a Range

Thanks Bob, I now see light at the end of the tunnel......just have to
climb through the train wreck:)

Dave

On Tue, 12 Aug 2003 21:52:16 -0400, "Bob Kilmer"
wrote:

Sub Main3()
'Minor variation on Main2
Index = 6
Set rng = Worksheets("Sheet1").Range("A1:D100")
With rng
.Columns(.Columns.Count).Cells(Index) = ComboBox.Value
End With
End Sub

Sub Main4()
'Refers to cell Index in the last column of
'Worksheets("Sheet1").Range("A1:D100").
'Does not use range variable.
Index = 6
With Worksheets("Sheet1").Range("A1:D100")
.Columns(.Columns.Count).Cells(Index) = ComboBox.Value
End With
End Sub


Reply
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
Passing Variable to LINEST RW Excel Worksheet Functions 5 May 24th 05 07:00 PM
Newbie stuck on Passing a Variable into a Range Bob Kilmer Excel Programming 0 August 13th 03 02:38 AM
Newbie stuck on Passing a Variable into a Range Bob Kilmer Excel Programming 0 August 13th 03 02:20 AM
Passing a variable to a range statement Mervyn Thomas[_3_] Excel Programming 3 July 25th 03 02:40 PM
Passing a value to a variable from Userform Neal Steiner Excel Programming 1 July 18th 03 09:12 PM


All times are GMT +1. The time now is 04:33 AM.

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

About Us

"It's about Microsoft Excel"