Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 355
Default Programmatically putting text in title without using labels

Hello -

I currently have a solution where people click one of two buttons - one
button will give them a set of questions related to BankA and the other will
give them a set related to BankB. Each sheet (there are 25 of them) has to
have the title of BankA or BankB, depending on what they chose. I currently
have this text put into a label for each title.

Is there a way I can just put the text into a cell and therefore be able to
just link that info via reference to the page the text was originally put in?
In other words, how do I programmatically just put text into a cell, instead
of using a label?

Any help will be greatly appreciated!
--
Sandy
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,298
Default Programmatically putting text in title without using labels

unless I misunjderstand
lets say BankA's title is on a sheet called 'config' in A1 anf you want the
title placed on say sheet1 and sheet2

Sub SetBank_A()
Worksheets("Sheet1").Range("A1").Value = _
Worksheets("config").Range("A1").Value
Worksheets("Sheet2").Range("A1").Value = _
Worksheets("config").Range("A1").Value

End Sub

this isn't the best of code, but it shold give you the right idea...


"Sandy" wrote:

Hello -

I currently have a solution where people click one of two buttons - one
button will give them a set of questions related to BankA and the other will
give them a set related to BankB. Each sheet (there are 25 of them) has to
have the title of BankA or BankB, depending on what they chose. I currently
have this text put into a label for each title.

Is there a way I can just put the text into a cell and therefore be able to
just link that info via reference to the page the text was originally put in?
In other words, how do I programmatically just put text into a cell, instead
of using a label?

Any help will be greatly appreciated!
--
Sandy

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 355
Default Programmatically putting text in title without using labels

Patrick -

Thank you very much!

--
Sandy


"Patrick Molloy" wrote:

unless I misunjderstand
lets say BankA's title is on a sheet called 'config' in A1 anf you want the
title placed on say sheet1 and sheet2

Sub SetBank_A()
Worksheets("Sheet1").Range("A1").Value = _
Worksheets("config").Range("A1").Value
Worksheets("Sheet2").Range("A1").Value = _
Worksheets("config").Range("A1").Value

End Sub

this isn't the best of code, but it shold give you the right idea...


"Sandy" wrote:

Hello -

I currently have a solution where people click one of two buttons - one
button will give them a set of questions related to BankA and the other will
give them a set related to BankB. Each sheet (there are 25 of them) has to
have the title of BankA or BankB, depending on what they chose. I currently
have this text put into a label for each title.

Is there a way I can just put the text into a cell and therefore be able to
just link that info via reference to the page the text was originally put in?
In other words, how do I programmatically just put text into a cell, instead
of using a label?

Any help will be greatly appreciated!
--
Sandy

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
Putting text into graph Kirsty Charts and Charting in Excel 3 February 24th 09 08:55 PM
Excel 2007 text labels in category axis - missing labels Boris Charts and Charting in Excel 3 December 5th 08 04:33 PM
Putting a title on each page MEK Excel Discussion (Misc queries) 1 November 13th 08 08:41 PM
print labels from excel with title and number Ray Excel Discussion (Misc queries) 1 January 22nd 05 11:47 PM
Putting text in a column based on variable text from another colum Jacky D. Excel Discussion (Misc queries) 1 December 16th 04 06:09 PM


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