excel - Calling a sub to another worksheet -
I go through each worksheet and check for the flag.
If the flag is raised, I want to run another sub to it, flag check works, but the other sub which is said to be run on the main sheet.
how do i get it ? You either need to use a public variable (usually not recommended) or send the necessary logic to those necessary processes where they are necessary. sub update () Worksheet for each section in the active workbook. Worksheets (ws.Cells (1, 5) = 1) Then call update2 ( Ws) ends if the next ending sub-update2 (worksheet as the worksheet) ws.clear & lt; ---- & Sub Subsection
Sub Update 2 (worksheet as Worksheet) Call Thes (WS) and Sub SubSys (version as worksheet) ws.cells (1,6) = "Hello" end sub
Comments
Post a Comment