MS Excel issues :/
Closed
Utetopia
Posts
3
Registration date
Saturday 3 April 2010
Status
Member
Last seen
6 April 2010
-
3 Apr 2010 à 06:22
rizvisa1 Posts 4478 Registration date Thursday 28 January 2010 Status Contributor Last seen 5 May 2022 - 6 Apr 2010 à 11:39
rizvisa1 Posts 4478 Registration date Thursday 28 January 2010 Status Contributor Last seen 5 May 2022 - 6 Apr 2010 à 11:39
Related:
- MS Excel issues :/
- Ms excel mod apk for pc - Download - Spreadsheets
- Vat calculation excel - Guide
- Kernel for excel repair - Download - Backup and recovery
- Arrow keys not working in excel - Guide
- Excel clear formatting - Guide
3 responses
rizvisa1
Posts
4478
Registration date
Thursday 28 January 2010
Status
Contributor
Last seen
5 May 2022
766
4 Apr 2010 à 11:53
4 Apr 2010 à 11:53
Macro is one option or may be use of INDIRECT and ADDRESS combination might do the trick.
Utetopia
Posts
3
Registration date
Saturday 3 April 2010
Status
Member
Last seen
6 April 2010
6 Apr 2010 à 10:56
6 Apr 2010 à 10:56
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 28 January 2010
Status
Contributor
Last seen
5 May 2022
766
6 Apr 2010 à 11:39
6 Apr 2010 à 11:39
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