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 Using named cells in relative references


I have a userform which allows people to select a column and places tha
value in cell iv65536. I have then named this cell as WhichColumn. Th
column as a reference changes regularly and I used to have to go int
the code to change the offset value.

It is part of an IF statement

Old code
Else 'if the charge exists

ActiveCell.Offset(0, 23).Range("A1").Select
ActiveCell.Range("A1,F1").Select
Selection.Copy
Worksheets("Sheet2").Select
c.Offset(0, 1).Select
ActiveSheet.Paste
Worksheets("Sheet1").Select
ActiveCell.Offset(1, -23).Range("A1").Select
vSourceCharge = ActiveCell.Value
End If

What i want to do is set the column reference to refer to the value i
cell iv65536 which has the value eg Sheet1!$S:$S.

Does anyone know how to refer to a named range or get the contents o
that cell and use in a relative reference?

thank

--
rbekka3
-----------------------------------------------------------------------
rbekka33's Profile: http://www.excelforum.com/member.php...fo&userid=1403
View this thread: http://www.excelforum.com/showthread.php?threadid=27442

 
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
Naming Cells Using Relative Cell References Inobugs Excel Worksheet Functions 1 April 19th 09 03:50 PM
Help with converting a block of cells with Absolute and mixed references to relative references Vulcan Excel Worksheet Functions 3 December 13th 07 11:43 PM
Relative, absolute & mixed references in many cells FTM Excel Worksheet Functions 11 June 19th 06 09:38 AM
Named formulas in CHOOSE need to be Relative references when paste bill ch Excel Worksheet Functions 2 April 10th 06 04:13 PM
Confused about relative references in named formulas [email protected] Excel Worksheet Functions 1 March 22nd 06 10:40 PM


All times are GMT +1. The time now is 10:24 PM.

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"