Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Help required on creating names using VBA code

Hi Members,

Greeting to everyone. I am new to this group and this is my first
posting.

I have multiple sheets (about 10 - sheet names end with a number) in
my workbook.
Each sheet has a different number of filled in rows and columns and
these sheets are subject to frequent revision. I want to assign the
sheet tab names to the active cells in each sheet and I will be using
these named ranges in my pivot tables.

If I define the names manually (using menu Insert -- Name--
Define... ), then every time I need to change the named area for each
sheet. Its taking lot of time for me.

Is there any smart way of defining the names using formulas?
If not, can some of you guide me on the VBA codes for this? ( I am
beginner to VBA programming).

Thanks in advance,
Ramesh.

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 110
Default Help required on creating names using VBA code

On 3 Aug, 07:15, wrote:
Hi Members,

Greeting to everyone. I am new to this group and this is my first
posting.

I have multiple sheets (about 10 - sheet names end with a number) in
my workbook.
Each sheet has a different number of filled in rows and columns and
these sheets are subject to frequent revision. I want to assign the
sheet tab names to the active cells in each sheet and I will be using
these named ranges in my pivot tables.

If I define the names manually (using menu Insert -- Name--
Define... ), then every time I need to change the named area for each
sheet. Its taking lot of time for me.

Is there any smart way of defining the names using formulas?
If not, can some of you guide me on the VBA codes for this? ( I am
beginner to VBA programming).

Thanks in advance,
Ramesh.


Not sure I understand all of your requirements (especially the sheet
names part) but on a cursory read I think you would be greatly helped
by reading about dynamic range names which is basically a "smart way
of defining the names using formulas" as you state.

Check out:
http://www.beyondtechnology.com/geeks007.shtml
http://www.ozgrid.com/Excel/DynamicRanges.htm

Chrisso


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Help required on creating names using VBA code

On Aug 3, 12:54 pm, Chrisso wrote:
On 3 Aug, 07:15, wrote:





Hi Members,


Greeting to everyone. I am new to this group and this is my first
posting.


I have multiple sheets (about 10 - sheet names end with a number) in
my workbook.
Each sheet has a different number of filled in rows and columns and
these sheets are subject to frequent revision. I want to assign the
sheet tab names to the active cells in each sheet and I will be using
these named ranges in my pivot tables.


If I define the names manually (using menu Insert -- Name--
Define... ), then every time I need to change the named area for each
sheet. Its taking lot of time for me.


Is there any smart way of defining the names using formulas?
If not, can some of you guide me on the VBA codes for this? ( I am
beginner to VBA programming).


Thanks in advance,
Ramesh.


Not sure I understand all of your requirements (especially the sheet
names part) but on a cursory read I think you would be greatly helped
by reading about dynamic range names which is basically a "smart way
of defining the names using formulas" as you state.

Check out:
http://www.beyondtechnology.com/geeks007.shtml
http://www.ozgrid.com/Excel/DynamicRanges.htm

Chrisso- Hide quoted text -

- Show quoted text -


Hi Chrisso,

Thanks very much for providing those links. I liked the first one very
much (visited the second one earlier as well- 1st one is more clear
and elaborate).

I got a solution for my requirement now.

Thanks again.

Cheers,
Ramesh

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
using the Excel generic worksheet names instead of user-given names in code Paul Excel Discussion (Misc queries) 5 June 26th 09 08:44 PM
Another VB Code Required TGV Excel Discussion (Misc queries) 7 February 7th 09 07:21 AM
VB Code Required TGV Excel Discussion (Misc queries) 3 February 6th 09 05:31 PM
VB code Required-------! Thyagaraj Excel Programming 1 July 17th 06 03:35 AM
Code required please Neal Excel Programming 2 January 24th 05 05:27 AM


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