Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 363
Default Modify code to reference from a Matching value in Combobox1

Can anyone help me modify the below code ?
I want to have the highlighted line to refer to a matching value in sheet6
column A with the value selected in combobox1.



Dim i As Long
With workSheets(1).Range("N1") ' <============== Want this range to be
the value that was selected from the combobox. This value was from
sheet6(A:A).
.Offset(i, 0).Value = workSheets(i).Name
.Offset(i, 1).Value = workSheets(i).Range("B3").Value
.Offset(i, 2).Value = workSheets(i).Range("Z48").Value
.Offset(i, 3).Value = workSheets(i).Range("V3").Value
.Offset(i, 4).Value = workSheets(i).Range("J59").Value
End With

I want to be able to use this Cell as a reference from for OTHER data as the
rest of the code seems to do.

IE.
I can then get the value that is ((Offset(1, 4) for example )) from that
combobox value in sheet6 column A.

etc..............


Can anyone assist me with starting this?


Corey....


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
Modify code bigmaas Excel Discussion (Misc queries) 2 February 16th 10 10:51 AM
Modify Code Richard Excel Worksheet Functions 0 March 13th 08 08:19 PM
ComboBox1 grahammal Excel Discussion (Misc queries) 1 March 20th 06 12:33 PM
Modify code in UDF Biff Excel Programming 9 August 31st 05 04:41 AM
Help me modify this VBA code please: sanmisds1 Excel Programming 4 July 16th 05 04:48 AM


All times are GMT +1. The time now is 11:22 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"