Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Extract Cell Contents to String

Via a textbox, the user enters the two columns to be graphed against each
other. In the 4th row of each column is the column name. I need to extract
these column names to label the x and y axis of the graph.

Thanks so much!
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 735
Default Extract Cell Contents to String

You say A textbox, does that mean you have both column references in the one
text box value? If so how do you differentiate them, is it by a separator
value (comma maybe?) or something else?


--

Regards,
Nigel




"arm9047" wrote in message
...
Via a textbox, the user enters the two columns to be graphed against each
other. In the 4th row of each column is the column name. I need to
extract
these column names to label the x and y axis of the graph.

Thanks so much!


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Extract Cell Contents to String

Two text boxes, the inputs are put into two separate variables xAxis and yAxis.

"Nigel" wrote:

You say A textbox, does that mean you have both column references in the one
text box value? If so how do you differentiate them, is it by a separator
value (comma maybe?) or something else?


--

Regards,
Nigel




"arm9047" wrote in message
...
Via a textbox, the user enters the two columns to be graphed against each
other. In the 4th row of each column is the column name. I need to
extract
these column names to label the x and y axis of the graph.

Thanks so much!


  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 735
Default Extract Cell Contents to String

Assumes textbox 1 and 2 are on the same sheet as the chart, no checking that
the users enters a valid column reference (letter), change chart reference
to suit.

With ActiveSheet
.ChartObjects("Chart 1").Activate
ActiveChart.Axes(xlValue, xlPrimary).AxisTitle.Text = .Cells(4,
..TextBox1.Value)
ActiveChart.Axes(xlCategory, xlPrimary).AxisTitle.Text = .Cells(4,
..TextBox2.Value)
End With

--

Regards,
Nigel




"arm9047" wrote in message
...
Two text boxes, the inputs are put into two separate variables xAxis and
yAxis.

"Nigel" wrote:

You say A textbox, does that mean you have both column references in the
one
text box value? If so how do you differentiate them, is it by a
separator
value (comma maybe?) or something else?


--

Regards,
Nigel




"arm9047" wrote in message
...
Via a textbox, the user enters the two columns to be graphed against
each
other. In the 4th row of each column is the column name. I need to
extract
these column names to label the x and y axis of the graph.

Thanks so much!



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
Extract portion of cell contents Rick[_10_] Excel Worksheet Functions 7 December 19th 09 12:27 AM
Extract a string from a cell MrLarrier Excel Worksheet Functions 3 January 13th 09 04:58 PM
macro to find extract and paste contents from one cell to another jsd219 Excel Programming 9 October 27th 06 05:02 PM
Extract hyperlink string from excel cell Ryan Sapien Links and Linking in Excel 1 January 20th 05 12:24 AM
How do you extract numbers from a string of chacters in a cell (E. blackbeemer Excel Worksheet Functions 6 November 12th 04 09:00 AM


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