excel - Need to copy certain data over workbooks -


New for VBA here. I have been stuck on this problem for a while:

Essentially, I need to create a macro that copies specific copies of data from a sheet to specific data, to specify the user Grab it is that all the data is in a column (B), not all the entries in the column are relevant entries; Some are empty and some other data that I do not want

Only entries that begin with 4 digits, they want me to see how the repetitive copy works; Here's how I came from:

  Define the direct deployment = range ("B2") as the direct director if dater = False then "not specified date" MsgBox If string string = "B5" in the form of shading = "" Sheetin = "" MSBBC "is not specified in the input sheet, exit the sub if the string wobbin = range (" B4 ") like dim wbin if wbin = "" MsgBox "input workbook is not specified "Exit the subtitle" if the string sheet = range ("B9") as the signal sheet, if the sheet out = "MSBBX" output sheet is not specified then exit the sub-end if the string wobb = = range ("B" 8 ") If wbout =" "then the" output workbook "is not specified, then exit the" Output workbook not specified "windows (wbout). Actively activate as a worksheet, in the form of a boolean form in the form of a boolean, for each shirt if the sheet like like sh.Name is presentx = True: Next for Exit if existx = true then if sheets (sheetout). When it is false = Sheets (Sheetout) .Viewable = True Sheets.ed.name = CSRT (Sheetout) and 'Copy Paste Worm Windows (Ybine). Select Activate Sheets. Select 'specify' for IIM = 1 for iRo = 1 with iMaxRow worksheets (Sheetin) .mail (iRow, 2) 'That cell is not empty. If .Value = "#### *" then Koppi Destination: = Workbooks (wbout). Worksheet (Sheetout). Range ("A" & amp; i) & nothing else. If the end is next IRO with the sub sub   

After this I have to match the data from these entries which have been copied, but once I know that once it moves It should not be too much problem. But now I'm really stuck ... please help!

It seems that this should work, except that part:

  (sheeting) with worksheets. Game (iRow, 2) if .Value = "#### *" then Koppi Destination: = Workbooks (wbout). Worksheet   

The third line has an unknown variable: i . P> You need to define it to include the number of lines on which you are copying. For example, if you want to copy into the first available row, try it:

  set wsOut = workbooks (wbout). Worksheet with SheetSheets (Sheetout) .mail (iRow, 2) if .Value = "#### *" Then I = wsOut.Cells (wsOut.Rows.Count, 1). End (xlUp) .row 1. Cop Destination: = wsOut.Range ("A" & amp; i) expires if     has expired

Comments

Popular posts from this blog

Verilog Error: output or inout port "Q" must be connected to a structural net expression -

jasper reports - How to center align barcode using jasperreports and barcode4j -

c# - ASP.NET MVC - Attaching an entity of type 'MODELNAME' failed because another entity of the same type already has the same primary key value -