Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / New Users / December 2004

Tip: Looking for answers? Try searching our database.

VB Scripting/Macro - Filling/Editing Worksheet References

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Meghan - 16 Dec 2004 16:05 GMT
Question:

What VB code will allow me to rewrite just the worksheet reference in a
function/cell reference. For example it says

=January!$AH40

and I would like a macro that would change it to

=February!$AH40

Any suggestions would be greatly appreciated!!! :)

Background:

I have 12 cells in a row that each refer to the same cell location on twelve
different worksheets within the same workbook.

The fill function does not "fill" the worksheet reference. It is too time
consuming to manually input or edit 2016 cells.
Frank Kabel - 16 Dec 2004 16:08 GMT
Hi
you may have a look at the INDIRECT function for this

Signature

Regards
Frank Kabel
Frankfurt, Germany

> Question:
>
[quoted text clipped - 17 lines]
> The fill function does not "fill" the worksheet reference. It is too time
> consuming to manually input or edit 2016 cells.
Peo Sjoblom - 16 Dec 2004 17:55 GMT
This will change the sheet name when copied down

=INDIRECT("'"&INDEX({"January";"February";"March";"April";"May";"June";"July";"August";"September";"October";"November";"December"},ROW(1:1))&"'!AH40")

assuming the 12 sheets are named after the months

Regards,

Peo Sjoblom

> Question:
>
[quoted text clipped - 16 lines]
> The fill function does not "fill" the worksheet reference. It is too time
> consuming to manually input or edit 2016 cells.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.