Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming,microsoft.public.scripting.vbscript
external usenet poster
 
Posts: 26
Default Converting a range to string

Hi,

I've got a range object that I want to convert to a string so I can use in
the PivotTableWizard method:

Dim rng As Range
set rng = Sheets("sales").Range("A1").CurrentRegion

I want to convert rng into a string like this:

"sales!R1C1:R796C6"

Any help you can provide will be greatly appreciated.

Robert Stober


  #2   Report Post  
Posted to microsoft.public.excel.programming,microsoft.public.scripting.vbscript
external usenet poster
 
Posts: 493
Default Converting a range to string

One way:

str = rng.Parent.Name & "!" & rng.Address(True, True, False, False)


In article ,
"Robert Stober" wrote:

Hi,

I've got a range object that I want to convert to a string so I can use in
the PivotTableWizard method:

Dim rng As Range
set rng = Sheets("sales").Range("A1").CurrentRegion

I want to convert rng into a string like this:

"sales!R1C1:R796C6"

Any help you can provide will be greatly appreciated.

Robert Stober


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
Converting A String to a Column of Data carl Excel Worksheet Functions 2 May 19th 10 06:21 PM
Converting string to number kenppy New Users to Excel 9 March 5th 10 07:18 PM
Converting a range of Excel 2003 Cells to a Single text string JR2008 Excel Discussion (Misc queries) 2 July 7th 08 12:50 AM
Converting datetime from character string [email protected] Excel Worksheet Functions 4 November 13th 07 02:39 PM
Converting string of letters to Number sebkavam Excel Discussion (Misc queries) 6 July 26th 06 10:50 PM


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