excel - Copying a range of numbers from regedit to multiple worksheets depending on tabstrip index? -
I excel in / VBA I am trying to create a Ugrform which to select a range of data and data category For a specific worksheet based on the tab strip index, will be allowed to copy, once the command button "Forecasting" has been selected.
This is what I have to strip changes so far:
private sub TbsMethod_Change () Dim tab Indies tab as index = tbsMethod.SelectedItem.Index case tab Chunenindaks case 0 Label2.Visible = True RefEdit1.Visible = True Label_a.Visible = False Label_b.Visible = False Label_g.Visible = False TextBox_a.Visible = False TextBox_b .Visible = False TextBox_g.Visible = False case 1 Label2.Visible = True .... this is where I believe the problem (Commandbutton_click) is:
sub Purwanumanbaytn_klik () dim tab index Integer worksheet in form Worksheet tab in the form of tab index = TBS method. Selected ITem.Index Select Case with this workbook worksheet tab or "copies" module 'case 0 Application ( "B7: B 26") Episode 1 range (RefEdit1.Value) .Copy destination: = Sheet3.Range ("B7: B26") application GoTo ActiveWorkbook.Sheets ("Sheet3"). Range ("B7") Case 2 Apps GoTo ActiveWorkbook.Sheets ("Sheet4"). Category ("B7"). Room (29, 2). Value = m TestBox - Value range (RefEdit1.Value) .copy destination: = Sheet4.Range ("B7: B26") Case 3 app GoTo ActiveWorkbook.Sheets ("Sheet5"). Category ("B7"). (29, 2). Value = Me.TextBox_a.Value Bell (30, 2). Value = Me.TextBox_b.Value range (RefEdit1.Value) Kkapi destination: = Sheet5.Range ( "B7: B26") Case 4 app. GoTo ActiveWorkbook.Sheets ("Sheet6"). Range ("B7"). (29, 2). Value = Me.TextBox_a.Value .seel (30, 2). Value = Me.TextBox_b.Value.Cells (31, 2) .Value = Me.TextBox_g.Value Range (RefEdit1.Value). Koppi destination: = Sheet6.Range ("B7: B26") Select end Select dfMod with me R. Values = "" Personal sub CMDCloseClick () unloaded dfMod End Sub I was getting the "Error 9 subtitle limit out of" error message is now saying "method or data member met." VBA / EXCEL is quite new so any help would be greatly appreciated
thanks, Ryan
You are in your code
with this workbook .... Seals (... cell is not workbook the property or method of the object and will return an error
Comments
Post a Comment