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: 55
Default Range Name with VBA Exciting :) or Nightmare :(

Hi All,
Using Excel 2003 with XP. I am learning quite a bit about range names
as applied on the sheets with the help of many of you MVPs. But... i
am trying to learn how to manipulate with VBA. Below is the code
which kind of works having created the range name first. I would like
to work with strings and dates and numerics and am getting really
stuck. Maybe even if u could point me to a website. Thks. Rgds KZ.

Sub tryRN_FirstNames()
Dim sFN
sFN = Names.Item("rnFName")
MsgBox sFN

sFN = "XYZ"
Names.Item("rnFName").RefersTo = sFN
sFN = Names.Item("rnFName")
MsgBox sFN

sFN = "ABC"
Names.Item("rnFName").RefersTo = sFN
sFN = Names.Item("rnFName")
MsgBox sFN
End Sub

 
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
nightmare formula [email protected] Excel Worksheet Functions 4 March 15th 09 10:36 AM
Another Exciting Data Table Question!!!! xinekite Charts and Charting in Excel 1 May 29th 05 01:22 PM
IF Statement nightmare eugenevr Excel Discussion (Misc queries) 6 May 18th 05 01:09 PM
New exciting : Infra-Red reader helmekki[_5_] Excel Programming 1 May 31st 04 07:11 PM


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