MS Excel issues :/
Closed
Utetopia
Posts
3
Registration date
Saturday April 3, 2010
Status
Member
Last seen
April 6, 2010
-
Apr 3, 2010 at 06:22 AM
rizvisa1 Posts 4478 Registration date Thursday January 28, 2010 Status Contributor Last seen May 5, 2022 - Apr 6, 2010 at 11:39 AM
rizvisa1 Posts 4478 Registration date Thursday January 28, 2010 Status Contributor Last seen May 5, 2022 - Apr 6, 2010 at 11:39 AM
Related:
- MS Excel issues :/
- Ms excel free download - Download - Spreadsheets
- Ms excel marksheet - Guide
- Number to words in excel - Guide
- Kernel for excel - Download - Backup and recovery
- Excel date format dd.mm.yyyy - Guide
3 responses
rizvisa1
Posts
4478
Registration date
Thursday January 28, 2010
Status
Contributor
Last seen
May 5, 2022
766
Apr 4, 2010 at 11:53 AM
Apr 4, 2010 at 11:53 AM
Macro is one option or may be use of INDIRECT and ADDRESS combination might do the trick.
Utetopia
Posts
3
Registration date
Saturday April 3, 2010
Status
Member
Last seen
April 6, 2010
Apr 6, 2010 at 10:56 AM
Apr 6, 2010 at 10:56 AM
Hey.. thanks..
I'm not sure if the INDIRECT or ADDRESS functions would work. I'm pretty sure a macro would work, but i'm not really sure where or how to start writing one.. Guess i'll have to do a crash course in VB.. :/
I'm also looking at startin a dedicated summary of all the values i need on a seperate sheet!, and using a VLOOKUP referring to the seperate sheet! on the original.. Time consuming, i know, but probably qwikker than learning VB
I'm not sure if the INDIRECT or ADDRESS functions would work. I'm pretty sure a macro would work, but i'm not really sure where or how to start writing one.. Guess i'll have to do a crash course in VB.. :/
I'm also looking at startin a dedicated summary of all the values i need on a seperate sheet!, and using a VLOOKUP referring to the seperate sheet! on the original.. Time consuming, i know, but probably qwikker than learning VB
rizvisa1
Posts
4478
Registration date
Thursday January 28, 2010
Status
Contributor
Last seen
May 5, 2022
766
Apr 6, 2010 at 11:39 AM
Apr 6, 2010 at 11:39 AM
Actually VB is not that hard to start. MSO has a great feature of recording macro. So you basically do it manually and it records your action. This gives a template and you can make that template more generic to fit.
Sub t() Dim action As String ' get instructions action = Range("B2") ' forking based on action selected Select Case action ' if action is 1, then copy range A10:A17 Case Is = 1 Range("A10:A17").Copy ' if action is 2, then copy range B10:B17 Case Is = 2 Range("b10:b17").Copy ' if action is 3, then copy range C10:C17 Case Is = 3 Range("c10:c17").Copy ' this was just to show you that if 10-17 is always there and 'only thing that change is column, you can tell it what column 'to look for Case Is = "A" Range(Cells(10, "A"), Cells(17, "A")).Copy 'this was just to show you that you dont have to hard code column 'letter but pass it as parameter Case Else Range(Cells(10, action), Cells(17, action)).Copy End Select Range("A1:A7").PasteSpecial xlPasteValues End Sub